Re: Shipping a Python C extension + a library it uses as source

Daniel Holth <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CAG8k2+5cZGVVQwWH9gxjqTo1sRD8skstoqkcMywZe9nXn6qwMA@mail.gmail.com>
If you're adventurous we could try to get it built and packaged with SCons.
This extension generates code and then complies a cffi module:
https://bitbucket.org/dholth/pysdl2-cffi/raw/a31bf1d1100bc4573ccadcd574f8fdc5cc841e1c/SConstruct

On Tue, Jun 11, 2019, 16:13 Spencer Baugh <[email protected]> wrote:

>
> Hi distutils-sig,
>
> I've developed a small C library and a much larger Python native
> extension that uses that library. The native extension has no
> dependencies other than that small C library.
>
> While the library is useful on its own, I'm thinking it would be good to
> include the library's source directly with my native extension's source
> when I upload to PyPI, so that it can be easily built for arbitrary
> platforms without me having to create wheels for them.
>
> Is this a known approach? Have people done this before?
>
> For reference, the C library, which currently builds with autotools, is
> here:
> https://github.com/catern/rsyscall/tree/master/c
> And the Python library and native extension, which currently builds with
> setuptools and uses cffi, is here:
> https://github.com/catern/rsyscall/tree/master/python
>
> Thanks for any guidance!
> --
> Distutils-SIG mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/VB5DIPW3CUQVKBLXSDACRP23FAZWJPLS/
>

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/ISK7YNCNACHXYQJ7XRLQ6D2MQ4YX6ZM5/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.