-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
-
AP Sprint 15, AP Sprint 16
[3208956565] Upstream Reporter: Christian Heimes
Upstream description:
The `project_override` feature to patch `pyproject.toml` breaks when a requirement is listed multiple times.
- Example
`opencv-python-headless 4.12.0.88` has `build-system.requires`
```yaml
requires = [
"numpy<2.0; python_version<'3.9'",
"numpy==2.0.2; python_version>='3.9' and python_version<'3.13'",
"numpy==2.1.3; python_version=='3.13'",
"packaging",
"pip",
"scikit-build>=0.14.0",
"setuptools==59.2.0; python_version<'3.12'",
"setuptools<70.0.0; python_version>='3.12'",
]
```Fromager modifies this to:
```yaml
requires = ["numpy==2.1.3; python_version == "3.13"", "packaging", "pip", "scikit-build>=0.14.0", "setuptools"]
```Note that the `numpy` pins for Python < 3.9 and for Python 3.9 to <3.13 have been removed.
- blocks
-
AIPCC-4418 Upstream OpenCV patch to build with openblasp
-
- New
-
- is related to
-
AIPCC-5666 [python-wheel-build/fromager] document how multiple requirements are handled in project_override
-
- Closed
-
- links to