-
Notifications
You must be signed in to change notification settings - Fork 3k
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
allow creating wheels for editable packages #3379
Conversation
There might be legitimate reason but I don't think it should be the default behavior: if the user did not update the editable package's version in setup.py, it will end up with a wheel named This hazardous behavior could be enable via an |
Ah, now I understand the reason. Thanks for the explanation, @xavfernandez. I'll close this one and see if I can come up with a better solution. |
@xavfernandez regarding your #3379 (comment) above, it looks like one can do So I'm back to not understanding the restriction again. |
And you can also do |
2d99b12
to
b8374ba
Compare
@xavfernandez thanks for pointing me #2994. That's not the core of my issue though. Really, when I pip freeze my project (an application, not a library), I get lines with -e. So I really expect to be able to pip wheel -r frozen-requirements.txt without fiddling with the output of pip freeze. If remove the -e from my frozen requirements, it works, but it does a full git clone of my git dependencies in temporary directories. And that's really an issue because I have one dep (Odoo, to name it) where git clone means dowloading 1GB. If I can do a pip wheel from the editable requirement, it uses the clone I already have in src for development. So all in all, being able to pip freeze editable requirements is really helpful for the development workflow of applications. I updated the PR with a more correct solution (the failure is a transient travis error). |
@xavfernandez is my use case valid? If positive I can work on a test. |
b8374ba
to
4edb406
Compare
4edb406
to
8ab200a
Compare
8ab200a
to
5d8db57
Compare
Could some maintainer take a look at this and hopefully give a green light? |
Accidentally closed this, reopening. Sorry! |
Hello! As part of an effort to ease the contribution process and adopt a more standard workflow pip has switched to doing development on the If you do nothing, this Pull Request will be automatically migrated by @BrownTruck for you. If you would like to retain control over this pull request then you should resubmit it against the If you choose to migrate this Pull Request yourself, here is an example message that you can copy and paste:
If this pull request is no longer needed, please feel free to close it. |
5d8db57
to
e023083
Compare
reparented to the master branch in #3695 |
Fixes #3291
This lifts the restriction of not generating wheels for editable packages.
As explained in #3291, there are legitimate scenarios for this, such as building wheels from frozen requirements.