Skip to content

Commit d222e89

Browse files
MNT: Remove 'pip install' options in recipes
* Remove --no-deps --no-build-isolation 'pip install' options in recipes as the build tool (e.g. conda-build, rattler-build) will enforce all required 'pip install' options itself at build time.
1 parent 5b29307 commit d222e89

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

grayskull/strategy/pypi.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ class PypiStrategy(AbstractStrategy):
6363
def fetch_data(recipe, config, sections=None):
6464
update_recipe(recipe, config, sections or ALL_SECTIONS)
6565
if not (recipe["build"] and recipe["build"]["script"]):
66-
recipe["build"]["script"] = (
67-
"<{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation"
68-
)
66+
recipe["build"]["script"] = "<{ PYTHON }} -m pip install . -vv"
6967

7068

7169
def merge_pypi_sdist_metadata(

tests/data/poetry/langchain-expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build:
1313
entry_points:
1414
- langchain-server = langchain.server:main
1515
noarch: python
16-
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
16+
script: {{ PYTHON }} -m pip install . -vv
1717
number: 0
1818

1919
requirements:

0 commit comments

Comments
 (0)