[Distutils] platform specific python only wheels

Ronald Oussoren ronaldoussoren at mac.com
Thu Jan 30 19:29:58 CET 2014


On 30 Jan 2014, at 19:19, Daniel Holth <dholth at gmail.com> wrote:

> Your best bet currently is to execute the "mv" command to change the
> filename of the wheel.
> 
> I think bdist_wheel should probably accept a setup() argument to set
> the tags. Currently you can just set a "universal" flag which means
> pure 2+3 python.

There’s also —plat-name argument for the setuptools command, but that doesn’t work.

I’d have to rename the platform tag from “any” to a list of supported platforms, is that correct?

That would give a pretty convoluted filename, because the platform tag doesn’t allow for wildcards. That is, there is no way to specify “any linux”, only something like “linux_x86_64” (to borrow a tag from PEP 425).

Ronald

> 
> On Thu, Jan 30, 2014 at 1:14 PM, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
>> Hi,
>> 
>> Is there a way to create a wheel that contains only python code, but can only be installed on particular platforms?
>> 
>> In particular, I'm looking for a way to create a wheel for py2app that can only be installed on OSX because py2app cannot "cross-compile" application bundles.
>> 
>> Ronald
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig



More information about the Distutils-SIG mailing list