setup.py + cython == chicken and the egg problem
Dan Stromberg
drsalists at gmail.com
Thu Aug 18 20:33:30 EDT 2022
On Tue, Aug 16, 2022 at 2:03 PM Dan Stromberg <drsalists at gmail.com> wrote:
> Hi folks.
>
> I'm attempting to package up a python package that uses Cython.
>
> Rather than build binaries for everything under the sun, I've been
> focusing on including the .pyx file and running cython on it at install
> time. This requires a C compiler, but I'm OK with that.
>
> BTW, the pure python version works fine, and the cython version works too
> as long as you preinstall cython - but I don't want users to have to know
> that :)
>
For the actual chicken-and-egg problem, I'd needed to include my
pyproject.toml in my MANIFEST.in, like:
include pyx_treap.pyx pyx_treap.c pyproject.toml
More information about the Python-list
mailing list