boost-python: fix test

This commit is contained in:
FX Coudert 2019-01-07 10:35:36 +01:00
parent 8efdad2720
commit 9877650b9c

View file

@ -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