segevfiner / cypcap

A Cython based Python binding for modern libpcap
https://pypi.org/project/cypcap/
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

Figure out correct setup.py and pyproject.toml #5

Open segevfiner opened 2 years ago

segevfiner commented 2 years ago

So I tried to use setuptools' built-in support for Cython. Oh foolish me...

By including Cython in pyproject.toml/build-system.requires, distributing the C source file is kinda pointless as it will always be regenerated by the installed Cython as far as I can understand. The documentation is really confusing on the subject.

See https://groups.google.com/g/cython-users/c/C52mc9lm5xo

segevfiner commented 2 years ago

Arghhh, so I still include cython in pyproject.toml even though it won't be needed for an sdist because otherwise pip won't install Cython before running the setup.py in development...