Skip to content

Commit

Permalink
Conform to recipe standards (#4960)
Browse files Browse the repository at this point in the history
Co-authored-by: Jannis Leidel <[email protected]>
Co-authored-by: Ken Odegard <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 30, 2023
1 parent d3b7177 commit 63bf8a6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion conda_build/skeletons/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ def skeletonize(
if noarch_python:
ordered_recipe["build"]["noarch"] = "python"

recipe_script_cmd = ["{{ PYTHON }} -m pip install . -vv"]
recipe_script_cmd = [
"{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation"
]
ordered_recipe["build"]["script"] = " ".join(
recipe_script_cmd + setup_options
)
Expand Down
19 changes: 19 additions & 0 deletions news/4960-conform-to-recipe-standards
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* When templating new recipes from a pypi package, the build script `{{ PYTHON }} -m pip install . -vv` is deprecated in favor of `{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation`. (#4960)

### Docs

* <news item>

### Other

* <news item>
4 changes: 2 additions & 2 deletions tests/test_pypi_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_print_dict():
},
"build": {
"number": 0,
"script": "{{ PYTHON }} -m pip install . -vv",
"script": "{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation",
},
}
recipe_order = ["package", "source", "build", "about"]
Expand All @@ -74,7 +74,7 @@ def test_print_dict():
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
script: "{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation"
about:
home: "https://conda.io"
Expand Down

0 comments on commit 63bf8a6

Please sign in to comment.