我一直使用诗歌
来开发Python软件包。现在,我想在一个新项目中使用Cython,而我对如何构建de库有些困惑,无论是否使用 setup.py.py
而不是使用 poetry
完全。
我已经看过帖子(例如 a>)关于如何在软件包中包括 Cython
代码(使用 setup.py
),但不使用诗歌。其他,这个 -failed-with-with-poetry-backend“> this ),但它们取决于 build.py.py.py
脚本,并且在其中一个中说的评论说,如果 GCC
未安装。
那么,使用诗歌使用Cython的包装(并发布给PYPI)库的最佳实践是什么?
I've always used poetry
to develop python packages. Now I want to use Cython in a new project and I'm a little confuse about how to structure de library, whether or not to use a setup.py
instead of using poetry
at all.
I've seen posts (like this) about how to include cython
code in a package (with a setup.py
) but not using poetry. Others, This one (and this) does, but they depend on a build.py
script, and a comment said in one of them that approach wont work if gcc
is not installed.
So, what would be the best practices for packaging (and publishing to PyPI) libraries that use cython using poetry?
发布评论