Skip to content

Commit

Permalink
Use pip --config-settings flag instead of deprecated --global-option
Browse files Browse the repository at this point in the history
  • Loading branch information
n-elie committed Aug 11, 2023
1 parent dcb99f5 commit 058b0c1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion recipe/bld-python.bat
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
python -m pip install --global-option="build_ext" --global-option="-DPython3_EXECUTABLE:FILEPATH=%PYTHON%" . --no-build-isolation --no-deps --ignore-installed --no-index --no-cache-dir -vv
python -m pip install . ^
--config-settings="--global-option=build_ext" ^
--config-settings="--global-option=-DPython3_EXECUTABLE:FILEPATH=%PYTHON%" ^
--no-build-isolation ^
--no-deps ^
--ignore-installed ^
--no-index ^
--no-cache-dir ^
-vv
10 changes: 9 additions & 1 deletion recipe/build-python.sh
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
python -m pip install --global-option="build_ext" --global-option="-DPython3_EXECUTABLE:FILEPATH=${PYTHON}" . --no-build-isolation --no-deps --ignore-installed --no-index --no-cache-dir -vv
python -m pip install . \
--config-settings="--global-option=build_ext" \
--config-settings="--global-option=-DPython3_EXECUTABLE:FILEPATH=${PYTHON}" \
--no-build-isolation \
--no-deps \
--ignore-installed \
--no-index \
--no-cache-dir \
-vv

0 comments on commit 058b0c1

Please sign in to comment.