boost-python: fix test
This commit is contained in:
parent
8efdad2720
commit
9877650b9c
1 changed files with 4 additions and 2 deletions
|
@ -57,11 +57,13 @@ class BoostPython < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
pyprefix = `python-config --prefix`.chomp
|
||||
pyincludes = Utils.popen_read("python-config --includes").chomp.split(" ")
|
||||
pylib = Utils.popen_read("python-config --ldflags").chomp.split(" ")
|
||||
|
||||
system ENV.cxx, "-shared", "hello.cpp", "-L#{lib}", "-lboost_python27", "-o",
|
||||
"hello.so", *pyincludes, *pylib
|
||||
system ENV.cxx, "-shared", "hello.cpp", "-L#{lib}", "-lboost_python27",
|
||||
"-o", "hello.so", "-I#{pyprefix}/include/python2.7",
|
||||
*pyincludes, *pylib
|
||||
|
||||
output = <<~EOS
|
||||
from __future__ import print_function
|
||||
|
|
Loading…
Reference in a new issue