Skip to content

Commit

Permalink
docs: Remove 'pip install' options in recipes
Browse files Browse the repository at this point in the history
* Remove --no-deps, --no-build-isolation, and --ignore-installed 'pip install'
  options in recipes as rattler-build will enforce all required 'pip install'
  options itself at build time.
  • Loading branch information
matthewfeickert committed Nov 16, 2024
1 parent 665125d commit 7cd59af
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ build:
# Thanks to `noarch: python` this package works on all platforms
noarch: python
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ build:
# Thanks to `noarch: python` this package works on all platforms
noarch: python
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/recipe_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ source:
# build number (should be incremented if a new build is made, but version is not incrementing)
build:
number: 1
script: python -m pip install --no-deps --ignore-installed .
script: python -m pip install .
# the requirements at build and runtime
requirements:
Expand Down
4 changes: 2 additions & 2 deletions examples/mamba/build_mamba.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if /I "%PKG_NAME%" == "mamba" (
cd mamba
%PYTHON% -m pip install . --no-deps -vv
%PYTHON% -m pip install . -vv
exit 0
)

Expand Down Expand Up @@ -43,6 +43,6 @@ if errorlevel 1 exit 1
if /I "%PKG_NAME%" == "libmambapy" (
cd ../libmambapy
rmdir /Q /S build
%PYTHON% -m pip install . --no-deps -vv
%PYTHON% -m pip install . -vv
del *.pyc /a /s
)
4 changes: 2 additions & 2 deletions examples/mamba/build_mamba.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if [[ $PKG_NAME == "mamba" ]]; then
cd mamba
$PYTHON -m pip install . --no-deps -vv
$PYTHON -m pip install . -vv

echo "Adding link to mamba into condabin";
mkdir -p $PREFIX/condabin
Expand Down Expand Up @@ -40,6 +40,6 @@ ninja install
if [[ $PKG_NAME == "libmambapy" ]]; then
cd ../libmambapy
rm -rf build
$PYTHON -m pip install . --no-deps -vv
$PYTHON -m pip install . -vv
find libmambapy/bindings* -type f -print0 | xargs -0 rm -f --
fi
2 changes: 1 addition & 1 deletion examples/rich/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:
# Thanks to `noarch: python` this package works on all platforms
noarch: python
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv

requirements:
host:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ recipe:
number: 0
string: pyh4616a5c_0
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv
noarch: python
requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion test-data/recipes/flask/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source:
build:
number: 0
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv
# make sure that PY_VER is set even for noarch packages
- if: unix
then:
Expand Down
2 changes: 1 addition & 1 deletion test-data/recipes/package-content-tests/rich-recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build:
# Thanks to `noarch: python` this package works on all platforms
noarch: python
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion test-data/recipes/rich/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build:
# Thanks to `noarch: python` this package works on all platforms
noarch: python
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion test-data/recipes/toml/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source:

build:
noarch: python
script: python -m pip install . --no-deps -vv
script: python -m pip install . -vv

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion test-data/recipes/variants/boltons_recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source:
build:
noarch: python
script:
- python -m pip install . --no-deps -vv
- python -m pip install . -vv

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion test-data/rendered_recipes/rich_recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ recipe:
number: 0
string: pyh4616a5c_0
script:
- python -m pip install . -vv --no-deps --no-build-isolation
- python -m pip install . -vv
noarch: python
requirements:
host:
Expand Down

0 comments on commit 7cd59af

Please sign in to comment.