set python3 root in setup.py

This commit is contained in:
Matthias Hochsteger 2023-08-30 16:04:22 +02:00
parent a94a940fe3
commit 56d1dbb2b6

View File

@ -102,7 +102,7 @@ cmake_args += [
]
pyprefix = pathlib.Path(sys.prefix).as_posix()
cmake_args += [f'-DCMAKE_PREFIX_PATH={pyprefix}']
cmake_args += [f'-DCMAKE_PREFIX_PATH={pyprefix}', f'-DPython3_ROOT_DIR={pyprefix}']
setup(
name=name,