python setup.py: use sys.prefix as CMAKE_PREFIX_PATH

This commit is contained in:
Matthias Hochsteger 2023-05-11 15:08:23 +02:00
parent ea1b53eb20
commit dc2cbc01f1

View File

@ -100,8 +100,7 @@ cmake_args += [
'-DBUILD_STUB_FILES=OFF',
]
if 'PYDIR' in os.environ:
cmake_args += [f'-DCMAKE_PREFIX_PATH={os.environ["PYDIR"]}']
cmake_args += [f'-DCMAKE_PREFIX_PATH={sys.prefix}']
setup(
name=name,