Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Not if your build step includes code generation (other than Cython).

Is it possible for Cython? Their guide shows using setup.py:

https://cython.readthedocs.io/en/latest/src/tutorial/cython_...



https://setuptools.pypa.io/en/latest/userguide/distribution....

> setuptools will detect at build time whether Cython is installed or not. If Cython is not found setuptools will ignore pyx files.

> To ensure Cython is available, include Cython in the build-requires section of your pyproject.toml:

  [build-system]
  requires=[..., "cython"]
> Built with pip 10 or later, that declaration is sufficient to include Cython in the build. For broader compatibility, declare the dependency in your setup-requires of setup.cfg:




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: