diff --git a/api/swig/python/CMakeLists.txt b/api/swig/python/CMakeLists.txt index d72241c508..9706b72e70 100644 --- a/api/swig/python/CMakeLists.txt +++ b/api/swig/python/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_policy(SET CMP0086 NEW) if(Python_LOOKUP_VERSION) set(Python_FIND_STRATEGY VERSION) - find_package(Python ${Python_LOOKUP_VERSION} EXACT COMPONENTS Interpreter Development) + find_package(Python ${Python_LOOKUP_VERSION} COMPONENTS Interpreter Development) else() set(Python_FIND_STRATEGY LOCATION) find_package(Python3 COMPONENTS Interpreter Development) diff --git a/api/swig/python/setup.py.in b/api/swig/python/setup.py.in index 745978c0c5..abedfb707f 100644 --- a/api/swig/python/setup.py.in +++ b/api/swig/python/setup.py.in @@ -4,7 +4,7 @@ from pathlib import Path import cmake_build_extension import setuptools -PY_VERSION = f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}" +PY_VERSION = f"{sys.version_info.major}.{sys.version_info.minor}" setuptools.setup( ext_modules=[ diff --git a/docs/BUILDING.md b/docs/BUILDING.md index 7e76508dcc..dc1e0bfc57 100644 --- a/docs/BUILDING.md +++ b/docs/BUILDING.md @@ -33,8 +33,7 @@ This will generate an HTML coverage report in `build/ccov/all-merged/index.html` After building the C++ library in the `build` directory as above, you will be able to build a Python wheel as follows: ```shell -$ cd build/api/swig/python -$ python -m pip wheel -w dist/ . +$ python -m pip wheel -w ./wheel/ ./build/api/swig/python ``` Then you can install the wheel with: