-
Notifications
You must be signed in to change notification settings - Fork 816
python wheel #457
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
Comments
This package is pure python, would it make a difference? |
Yes, it makes a huge difference, installation from Python wheel, even for pure Python, is so much faster, as installation is little more than downloading a zip file and uncompressing it directly to the final destination. A normal package installation, not only needs uncompressing to a temporary src directory, then it needs to execute |
Can you quantify "a lot"? 200kB doesn't take a lot to process. |
It mainly saves pip from spawning a process to launch
(the wheel was produced via |
Since This would mean switching from:
to
|
I'm not sure complicating our build process is worth saving 300ms of install cost. |
It's 300 ms multiplied by the 100k+ installs of If you could point me to your build process, I'd be more than pleased to improve it. |
I build and release by hand. |
Indeed, it's usually trivial to build/upload a wheel: if now you are doing
This tells it that the built wheel is pure Python and works in either Python 2 or Python 3 without changes. |
To ease the transition to prometheus#457: `python setup.py sdist bdist_wheel` will produce the universal wheel in addition to the sdist. Signed-off-by: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
I've opened #487 if you don't like the additional As @gjcarneiro explained, if you're currently using |
To ease the transition to #457: `python setup.py sdist bdist_wheel` will produce the universal wheel in addition to the sdist. Signed-off-by: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
Just wanted to echo a +1 for this. I noticed prometheus-client was not distributing wheels today when I was reviewing the list of projects without wheels on https://pythonwheels.com. The longer-form advantages of wheels over sdists are elaborated upon in the wheel PEP: https://www.python.org/dev/peps/pep-0427/#rationale Distributing wheels is only one extra step as part of the build and release process (include a |
Would it be possible, from now on, to also generate and upload Python wheels? It will speed up installation of this package a lot...
The text was updated successfully, but these errors were encountered: