[Distutils] Can I upload a binary wheel to a local devpi on Linux using pip? Do I need setup.py?

Nick Coghlan ncoghlan at gmail.com
Mon Mar 30 01:13:09 CEST 2015


On 28 Mar 2015 09:16, "Donald Stufft" <donald at stufft.io> wrote:
>
> Use twine to upload

As Donald notes, twine can handle the upload, and devpi (unlike the public
PyPI) will happily host Linux wheel files.

The main trap to watch out for when using that approach in the current
system is that the wheel filenames won't say which Linux distro they were
built against, so you may get cryptic runtime errors if they escape the
intended environments.

Cheers,
Nick.

>
>
> > On Mar 27, 2015, at 7:11 PM, Dan Stromberg <drsalists at gmail.com> wrote:
> >
> > Is it possible to use "pip wheel" to upload a binary wheel on Linux,
> > to a local devpi server? Or do I need to get to a setup.py and do an
> > upload from there? It seems a shame to build the wheel without need of
> > a setup.py (I believe setup.py is only used behind the scenes), only
> > to need a setup.py to upload the result.
> >
> > This makes me wonder about devpi and binary wheels on Linux:
> > http://pythonwheels.com
> > C extensions
> > PyPI currently only allows uploading platform-specific wheels for
> > Windows and Mac OS X. It is still useful to create wheels for these
> > platforms, as it avoids the need for your users to compile the package
> > when installing.
> >
> > I'm doing "pip -v -v -v wheel numpy" (for example), and I have a
> > pip.conf and .pypirc (both pointing at our local devpi).
> >
> > Thanks!
> > _______________________________________________
> > Distutils-SIG maillist  -  Distutils-SIG at python.org
> > https://mail.python.org/mailman/listinfo/distutils-sig
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150330/493b392d/attachment.html>


More information about the Distutils-SIG mailing list