Skip to content

python_version_independent: ignore python from other packages too #5654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions conda_build/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ def get_upstream_pins(m: MetaData, precs, env):
if m.python_version_independent and not m.noarch:
ignore_pkgs_list.append("python")
ignore_list = utils.ensure_list(m.get_value("build/ignore_run_exports"))
if m.python_version_independent and not m.noarch:
ignore_list.append("python")
additional_specs = {}
for prec in precs:
if any((prec.name == req.split(" ")[0]) for req in ignore_pkgs_list):
Expand Down
20 changes: 20 additions & 0 deletions news/gh5654.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Enhancements

* Ignore run_exports of python from other packages when building with
``python_version_independent: true`` (#5654).

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ build:

requirements:
build:
- cross-python_{{ target_platform }} # [build_platform != target_platform]
host:
- python 3.11.*
- setuptools
Expand Down
Loading