Closed yurivict closed 2 years ago
The wheel package must be installed.
https://github.com/google/or-tools/blob/86d4c543f717fa8716a9d66c25143660668bf825/cmake/python.cmake#L159-L161 and https://github.com/google/or-tools/blob/86d4c543f717fa8716a9d66c25143660668bf825/cmake/python.cmake#L29-L48
notice the install --user
so your user site package must be in path etc...
python -m site --user-site
Also In your trace I can see py38-or-tools-9.1
so I suppose you want use python3.8 ? but the end of the command line we could see /usr/local/bin/python3.10 setup.py bdist_wheel
note1: To find Python 3 we use the cmake built-in module FindPython3 -> https://cmake.org/cmake/help/latest/module/FindPython3.html (which search for the most recent version)
Python3_FIND_STRATEGY New in version 3.15. This variable defines how lookup will be done. The
Python3_FIND_STRATEGY
variable can be set to one of the following:VERSION
: Try to find the most recent version in all specified locations. This is the default if policyCMP0094
is undefined or set to OLD.LOCATION
: Stops lookup as soon as a version satisfying version constraints is founded. This is the default if policyCMP0094
is set toNEW
.
you should take a look at: https://cmake.org/cmake/help/latest/module/FindPython3.html#artifacts-specification
note2: on manylinux each python install is separated so we use -DPython3_ROOT_DIR="$1"
https://github.com/google/or-tools/blob/86d4c543f717fa8716a9d66c25143660668bf825/tools/docker/python/build-manylinux.sh#L40-L47
...
https://github.com/google/or-tools/blob/86d4c543f717fa8716a9d66c25143660668bf825/tools/docker/python/build-manylinux.sh#L65-L66
There was confusion with multiple python versions. wheel was installed for python-3.8 and or-tools was discovering python-3.10.
What version of OR-Tools and what language are you using? Version: 9.1 Language: Python
OS: FreeBSD 13