vowpal-wabbit: fix Darwin build.
- Follow the same logic for finding boost-python as for Linux. - Set DYLD_LIBRARY_PATH so that ctypes find_library can find boost-python. - Do not use '-mt' suffix when linking against boost-serialization and boost-program_options on Darwin.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, python, boost, zlib, clang, ncurses
|
||||
, pytest, docutils, pygments, numpy, scipy, scikitlearn }:
|
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, python, boost, zlib, clang
|
||||
, ncurses, pytest, docutils, pygments, numpy, scipy, scikitlearn }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vowpalwabbit";
|
||||
@@ -25,6 +25,11 @@ buildPythonPackage rec {
|
||||
buildInputs = [ python.pkgs.boost zlib.dev clang ncurses pytest docutils pygments ];
|
||||
propagatedBuildInputs = [ numpy scipy scikitlearn ];
|
||||
|
||||
# Python ctypes.find_library uses DYLD_LIBRARY_PATH.
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
export DYLD_LIBRARY_PATH="${python.pkgs.boost}/lib"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
# check-manifest requires a git clone, not a tarball
|
||||
# check-manifest --ignore "Makefile,PACKAGE.rst,*.cc,tox.ini,tests*,examples*,src*"
|
||||
|
||||
Reference in New Issue
Block a user