setup.py + cython == chicken and the egg problem

Dan Stromberg drsalists at gmail.com
Tue Aug 16 17:21:25 EDT 2022


On Tue, Aug 16, 2022 at 2:08 PM Chris Angelico <rosuav at gmail.com> wrote:

> On Wed, 17 Aug 2022 at 07:05, 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.
> >
>
> Is keeping the cythonized file an option? That would still require a C
> compiler, but wouldn't require Cython.
>
> ChrisA
>

That comes under "one of the many things I tried"; it seemed like some of
the code in the .c was tailored to the specific version of python it was
being installed on or something.

But if someone has seen this work well, I'm more than open to trying it
again.


More information about the Python-list mailing list