From d222e89f3fd9a7760e67b65fe4769c8a3b7f53a0 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 18 Nov 2024 00:24:26 -0700 Subject: [PATCH] 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. --- grayskull/strategy/pypi.py | 4 +--- tests/data/poetry/langchain-expected.yaml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/grayskull/strategy/pypi.py b/grayskull/strategy/pypi.py index c1cddcc6f..c3db08c8e 100644 --- a/grayskull/strategy/pypi.py +++ b/grayskull/strategy/pypi.py @@ -63,9 +63,7 @@ class PypiStrategy(AbstractStrategy): def fetch_data(recipe, config, sections=None): update_recipe(recipe, config, sections or ALL_SECTIONS) if not (recipe["build"] and recipe["build"]["script"]): - recipe["build"]["script"] = ( - "<{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation" - ) + recipe["build"]["script"] = "<{ PYTHON }} -m pip install . -vv" def merge_pypi_sdist_metadata( diff --git a/tests/data/poetry/langchain-expected.yaml b/tests/data/poetry/langchain-expected.yaml index d2dceafe4..2d9eb8822 100644 --- a/tests/data/poetry/langchain-expected.yaml +++ b/tests/data/poetry/langchain-expected.yaml @@ -13,7 +13,7 @@ build: entry_points: - langchain-server = langchain.server:main noarch: python - script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + script: {{ PYTHON }} -m pip install . -vv number: 0 requirements: