Skip to content
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

Warn that poetry will self-sabotage with zero-length setup.py files if interrupted. #14788

Open
matrixbot opened this issue Dec 20, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 20, 2023

This issue has been migrated from #14788.


Repro steps:

  • Run poetry install --extras all -v on 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.py file in the root of the checkout
  • Run poetry install --extras all -v again
  • 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.py to 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.

@matrixbot matrixbot changed the title Dummy issue Warn that poetry will self-sabotage with zero-length setup.py files if interrupted. Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant