[Distutils] wheel questions

Daniel Holth dholth at gmail.com
Fri Mar 21 20:19:25 CET 2014


1. No. Probably some day they will.

2. You are correct. We plan to switch the default to be py3-none-any
"runs on some Python 3 interpreter". cp33 means "only runs on CPython"
however we have decided this tag is probably less useful than
initially posited since there are other ways to say "has a C
extension".

On Fri, Mar 21, 2014 at 3:10 PM, Thomas Heller <theller at ctypes.org> wrote:
> 1. question: Can wheels support a postinstall script?
>
> Background: I'm in the process of setting up a build script for that
> part of our company's software that is ported to Python 3.4.
>
> I am using either wheels built by 'pip wheel' and cache them locally,
> or, if this doesn't work (numpy and pywin32 for example), convert
> bdist_wininst installers to wheels with 'wheel convert xxx.exe'.
>
> Works fine for numpy and some other stuff, but not for pywin32. pywin32
> contains a postinstall script that installs some dlls into the right
> locations and also does other stuff.  Can a wheel run an included
> postinstall (and preremove) script?
>
>
> 2. question:  I am building wheels for py2exe.
> If the wheel is built with python 3.3, the resulting wheel filename is
> py2exe-0.9.0.3-py33-none-any.whl.
> If the wheel is built with python 3.4, the filename is
> py2exe-0.9.0.3-py34-none-any.whl.
>
> Both are (kind-of) pure python distributions.  'pip install' can
> install the former both for Python 3.3 and Python 3.4, the latter
> only for Python 3.4.
>
> The only reason can be the filename.  Does the -py34- part mean that
> *at least* Python 3.4 is required, and does -py33- mean that *at least*
> Python 3.3 is required?
>
> What would -cp33- or -cp34- mean?
>
> Sorry about these questions, but I'm lost what these filenames really mean
> (and how they are created).
>
> Thanks,
> Thomas
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig


More information about the Distutils-SIG mailing list