Editable installs broken with pip 22.1
- Vorherrschende Sprache
- Python
- Sterne
- 653
- Forks
- 217
- Ø Merge
- 2 T. 21 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
# Problem
All CI jobs will probably fail right now if using `pip` 22.1 with the tell-tale error of:
```
pip._vendor.packaging.markers.UndefinedEnvironmentName: 'extra' does not exist in evaluation environment.
```
## References
- observed on #724
- probably due to https://github.com/pypa/pip/issues/11110
- it's suggested the "clever" `_version.py` and `version_info` stuff triggers `flit` to do more install than it's ready to do...
## Approaches
- wait for it to resolve itself
- `pip` or `flit` might fix something
- accept dupliaction
- in `pyproject.toml`
- remove `version` from `dynamic`
- add explicit version there
- add a test, etc. to verify the versions are in sync
- ???
Beitragsleitfaden
Rechercherichtung
Start by reproducing the editable-install failure with pip 22.1 and inspect pyproject.toml alongside the _version.py and version_info handling mentioned in the issue. Check the linked pip issue and flit behavior before choosing between dependency behavior and duplicated version metadata. Done means editable installs no longer produce the UndefinedEnvironmentName error and a test verifies the relevant version values stay in sync.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100