Package containing C sources (Posting On Python-List Prohibited)
Victor Porton
porton at narod.ru
Wed Jan 31 01:52:14 EST 2018
Lawrence D’Oliveiro wrote:
> On Wednesday, January 31, 2018 at 6:13:00 PM UTC+13, Victor Porton wrote:
>> I am going to create a Python wrapper around a generally useful C
>> library. So the wrapper needs to contain some C code to glue them
>> together.
>
> Not necessarily. It’s often possible to implement such a wrapper entirely
> in Python, using ctypes <https://docs.python.org/3/library/ctypes.html>.
But if I will find that I need C code, do I need to package it separately?
So I would get three packages: the C library, the C wrapper for Python, and
the Python code.
Can this be done with just two packages: the C library and C wrapper and
Python in one package?
--
Victor Porton - http://portonvictor.org
More information about the Python-list
mailing list