-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vowpalwabbit: fix build against boost-python. #45987
Conversation
Patch setup.py to look for libboost_python{Major}{Minor}.
@GrahamcOfBorg build python2Packages.vowpalwabbit python3Packages.vowpalwabbit |
/cc maintainer @teh. |
That's indeed what should be used. |
@GrahamcOfBorg build python2Packages.vowpalwabbit python3Packages.vowpalwabbit |
Failure on x86_64-darwin (full log) Attempted: python2Packages.vowpalwabbit, python3Packages.vowpalwabbit Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python2Packages.vowpalwabbit, python3Packages.vowpalwabbit Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python2Packages.vowpalwabbit, python3Packages.vowpalwabbit Partial log (click to expand)
|
- 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.
The added commit should also fix the build on Darwin (tested on macOS 10.14 beta). |
@GrahamcOfBorg build python2Packages.vowpalwabbit python3Packages.vowpalwabbit |
Failure on aarch64-linux (full log) Attempted: python2Packages.vowpalwabbit, python3Packages.vowpalwabbit Partial log (click to expand)
|
This never built on aarch64 according to hydra logs, so would you please mark it as broken on aarch64 to get rid of one more failure? |
Success on x86_64-linux (full log) Attempted: python2Packages.vowpalwabbit, python3Packages.vowpalwabbit Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: python2Packages.vowpalwabbit, python3Packages.vowpalwabbit Partial log (click to expand)
|
Ok, marked it broken on aarch64. |
Patch setup.py to look for libboost_python{Major}{Minor}. This fixes the build in unstable and 18.09.
Motivation for this change
Going through the list of #45960 I found that the Vowpal Wabbit Python module does not compile. This fixes compilation with Python 2.7 and 3.6.
Note: for some reason, boost is added to the build environment without boost-python, unless I explicitly add
python.pkgs.boost
as a dependency.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)