This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Warn that poetry will self-sabotage with zero-length setup.py files if interrupted. #14788
Copy link
Copy link
Open
Labels
A-Docsthings relating to the documentationthings relating to the documentationO-UncommonMost users are unlikely to come across this or unexpected workflowMost users are unlikely to come across this or unexpected workflowS-TolerableMinor significance, cosmetic issues, low or no impact to users.Minor significance, cosmetic issues, low or no impact to users.T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Description
Repro steps:
- Run
poetry install --extras all -von a git checkout - Interrupt it due to Speed up builds with large number of git ignored files python-poetry/poetry-core#499 not having been merged, and the fact that it gets stuck traversing a massive media store directory tree.
- Don't notice that it's left a zero-length
setup.pyfile in the root of the checkout - Run
poetry install --extras all -vagain - Discover it fails cryptically with:
Obtaining file:///home/matrix/synapse
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-81uum26d
- Eventually figure out that you have to delete
setup.pyto make poetry stop mysteriously failing.
Filing this in case we want to update the Synapse guide to reflect this - or failing that, to leave a breadcrumb trail for others to find. Or i guess we could ask poetry to fix this horrific behaviour; i had to strace the wretched thing to figure out what the root cause was.
Metadata
Metadata
Assignees
Labels
A-Docsthings relating to the documentationthings relating to the documentationO-UncommonMost users are unlikely to come across this or unexpected workflowMost users are unlikely to come across this or unexpected workflowS-TolerableMinor significance, cosmetic issues, low or no impact to users.Minor significance, cosmetic issues, low or no impact to users.T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.