[Distutils] package made up of only .so's?
Daniel Holth
dholth at gmail.com
Mon Jul 4 12:27:08 EDT 2016
Try my new project, enscons. https://bitbucket.org/dholth/enscons . You can
just wheel up whatever you want, without bothering with all this setup.py
nonsense. Put your metadata in pyproject.toml, enscons' setup2toml script
might help you generate that from setup.py. It might look something like
this:
import pytoml as tomlimport ensconsmetadata =
dict(toml.load(open('pyproject.toml')))['tool']['enscons']# most
specific binary, non-manylinux1 tag should be at the top of this
listif True: import wheel.pep425tags for tag in
wheel.pep425tags.get_supported(): full_tag = '-'.join(tag)
if not 'manylinux' in tag: breakenv =
Environment(tools=['default', 'packaging', enscons.generate],
PACKAGE_METADATA=metadata,
WHEEL_TAG=full_tag, ROOT_IS_PURELIB=False)sources =
Glob('*.so')env.Whl('platlib', sources, root='.')
On Mon, Jul 4, 2016 at 12:07 PM Chris Withers <chris at simplistix.co.uk>
wrote:
> Hi All,
>
> I need to build a package which is made up of a set of .so's.
>
> These .so's are compiled elsewhere, so I just need to write an
> appropriate setup.py and bdist_wheel to get what I want. But that first
> part is where I'm struggling.
>
> Each of these .so's is essentially a top level python module. How do I
> tell setuptools' setup() function to basically just roll these into a
> wheel?
>
> Any help gratefully received!
>
>
> Chris
>
> _______________________________________________
> 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/20160704/c627e4b3/attachment-0001.html>
More information about the Distutils-SIG
mailing list