osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Package containing C sources (Posting On Python-List Prohibited)


Le 31/01/18 ? 07:52, Victor Porton a ?crit?:
> 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?
>
Hi,

You can made an all-in-one package without problems.


Vincent