Skip to content

Commit

Permalink
Move python path config settings to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
n-elie committed Feb 29, 2024
1 parent 53d80ea commit 179be75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions recipe/bld-python.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
python -m pip install . ^
--config-settings="--global-option=build_ext" ^
--config-settings="--global-option=-DPython3_EXECUTABLE:FILEPATH=%PYTHON%" ^
--config-settings="--global-option=-DPython_EXECUTABLE:FILEPATH=%PYTHON%" ^
--no-build-isolation ^
--no-deps ^
--ignore-installed ^
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ def __init__(
name="qmn",
install_prefix="PySide6MolecularNetwork",
source_dir=str(Path(__file__).parent.absolute() / "shiboken"),
cmake_configure_options=[
f"-DPython3_ROOT_DIR={Path(sys.prefix)}",
f"-DPython3_EXECUTABLE={Path(sys.executable)}",
f"-DPython_EXECUTABLE={Path(sys.executable)}"
],
py_limited_api=True
),
],
Expand Down

0 comments on commit 179be75

Please sign in to comment.