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

No wheel file in PyPI #70

Open
darkvertex opened this issue Mar 6, 2019 · 0 comments
Open

No wheel file in PyPI #70

darkvertex opened this issue Mar 6, 2019 · 0 comments

Comments

@darkvertex
Copy link

Hi there,

I see when-changed got released to PyPI but only as a tarball:
https://pypi.org/project/when-changed/#files

Python wheels are the current standard for packaging pip packages and it will take you seconds to build one.

Could you upload a wheel (.whl) please? All you need to do is python setup.py bdist_wheel and it'll make a .whl file instead of a .tar.gz file. (If you get errors, pip install wheel and try again.)

If you upload directly from commandline then instead of python setup.py sdist upload you do python setup.py sdist bdist_wheel upload. There's not much more to it.

See, when pip installs a package if there is no wheel, it goes and builds one. This involves downloading the tarball, extracting it, generating a wheel internally, copying it to the local pip wheel cache and then deploying it from there. By serving a wheel to begin with, you save a lot of processing as it pretty much just drops in. (This may sound minor but if you're redeploying pip packages frequently, those saved seconds add up!)

You can read more about wheels in the docs:
https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels

If you're confident your code runs in Python 2 and 3, then you can read more about building a "universal" wheel, which will target both. Else it will be a wheel for the main version that you build with (ie, build in Python 2 and it makes a py2 wheel, build in Python 3 and it makes a py3 wheel.)

Thank you!

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

2 participants