-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Build boost-numpy with boost-python #5732
Comments
well it's written right there --- "../path/to/get-pip.py" by mistake the same
??? |
@voskrese What I imply here is that I have separately downloaded the
I do not understand what you are saying in your comment. Can you please explain it in simple words? The only thing I see here is that the Python.exe under Vcpkg (and used in the script) is version 3.5, not 3.6. That might be the reason boost-build is not picking it up while building boost-python, but I'm not sure (I wasn't able to verify this). |
then the reason is this python.exe
|
try with such variables full path c:\vcpkg set PATH="c:\vcpkg\downloads\tools\python\python3";%PATH%
|
cmake default search python C:\Program Files (x86)\CMake\share\cmake-3.13\Modules\FindPython\Support.cmake
|
I'm not an expert in The situation is:
However, The "call stack" of
And
So the brute-force and dirty solution is to fill the P.S., IMO, python path should have the option to be given manually by user, since user may have python installed in virtual environments or anything else, and that's |
Hi! I have the same issue and @Yienschwen solution didn't help, it still unable to find python in the directory for numpy check.
In the same time, local boost distribution built well with numpy. |
So dirty workaround that worked:
|
I'm not having any luck with building libboost_numpy37-vc141-mt-x64-1_72.lib at line 849 in removed and reinstalled boost-python, I need this libs in below but numpy for sure is missing: |
I got it working on Boost 1_73 with fresh git clone. I have all the libs that i need. |
I have Python 3.8 on the system and vcpkg insists on installing 3.9. I need to build boost-python with numpy for 3.8 - but this fails. I tried to resolve it by changing user-config.jam (in vcpkg\buildtrees\boost-python\x64-windows-rel\user-config.jam) but this is overwritten with 3.9. Is this the incorrect way of hinting which Python to use? |
Hello. The problem looks much more complicated. @vlarin provided a good local solution, but it is impossible to commit such changes. Building numpy requires python, but which one? vcpkg directory has at least two copies of python, third one was installed by standart installation in the most cases.
|
There is other workaround to try.
It has issue with spaces in python.exe path. Also note that this file will be removed if you call: |
Edit this file:"pathto\vcpkg\installed\x64-windows\tools\boost-build\src\tools\python.jam", |
Anyone know how to apply this hack? |
I had success by modifying this file: |
Wait, that one is missing aswell ... turns out there still is a port for Well apparently I'm stuck anyways as Boost 1.85 is not compatible with Numpy 2.1.1 for API changes and the fix is included with Boost 1,86, which hasn't made it to vcpkg yet... |
Hi, I'm using boost-python with the builtin numpy support enabled. Boost build decides whether to build the boost-numpy library as part of the boost-python library based on whether executing
python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"
succeeds or not. See https://github.com/boostorg/build/blob/e22a75c8fd83f0e52adea4f48ef5f9fbbdf5b72c/src/tools/python.jam#L838-L857Is there a way using Vcpkg to (1) rely on the Python installed by Vcpkg and (2) force boost to build the boost-numpy library as well?
I have tried the following script:
The expected result is that boost-ptython gets built with boostnumpy.
Instead, it is not built and the log say this:
Any ideas how to solve this, or any willingness to support this use case with Vcpkg?
The text was updated successfully, but these errors were encountered: