-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Contents of cryptography 0.5.2 source distribution on PyPI #1253
Comments
Hmm. So the question is "Why does |
@alex: Thanks for the quick reply. Yes, if
If these were packaged unintentionally (seems like it but I might be missing something) then I would humbly suggest to start packaging from |
Releases are done from a fresh checkout (we do not have any pycache directories in our tree), but just calling |
@reaperhulk: Thanks for pointing that out, my hint was meant in a friendly way. Certainly good to hear you guys are already doing this! If I would have to venture a guess I would point out The Disclaimer: Sorry if I'm stating the obvious here, just trying to get this issue fixed :-) |
Yup, it's known that On Fri, Jul 11, 2014 at 7:52 AM, Peter Odding notifications@github.com
"I disapprove of what you say, but I will defend to the death your right to |
Yes, So we add into that cffi, which needs to be in a However I do see that |
Given that I'm working on a fix in pull request #1257 I'll go ahead and close this issue. |
Disables setup_requires and related magic for setup.py commands clean, egg_info and sdist and the options --version and --help. See also pyca#1253
Hi cryptography developers,
When I download the cryptography 0.5.2 source distribution from PyPI, unpack it and run the command
python setup.py egg_info
thesetup.py
script spontaneously compiles a bunch of C files:There's two reasons I'm reporting this issue:
The first reason is that I've worked with hundreds of Python packages and I have never encountered one that ran a C compiler when
python setup.py egg_info
is invoked. My problem with this is that I wrote and use pip-accel and this behavior of compiling during theegg_info
command slows down my deployments a lot. What happens is this:cryptography==0.5.2
so it uses pip to download the source distribution archive (if not already in the download cache), unpack the source distribution archive and runpython setup.py egg_info
in the resulting directory (to gather information about the package).cryptography==0.5.2
package has previously been built so it re-uses the cached binary distribution to speed up my deployments.python setup.py egg_info
.The second reason is that all of the C files compiled by the
python setup.py egg_info
command are contained inside__pycache__
directories. These directory names make me wonder if maybe these files ended up in the source distribution archive unintentionally? In that case resolving my issue would be easy, basically justfind -type d -name __pycache__ -exec rm -R {} \;
and publish a new source distribution archivecryptography==0.5.3
to PyPI :-).My suggestion: If the files shouldn't be there they should be removed. If the files should be there and should be compiled and installed, then please change your
setup.py
script so that the files are only compiled by commands likepython setup.py build
andpython setup.py install
.One last thing: I tried to do my homework and searched through the existing issues and pull requests. I found some issues that seem related but I could find no definitive answer on whether these
__pycache__/*.c
files are really meant to be included in the source distribution (just search for__pycache__
in any of these issues):__pycache__
Thanks for your time.
The text was updated successfully, but these errors were encountered: