【发布时间】:2018-12-23 14:09:33
【问题描述】:
我正在尝试整理我的第一个 PyPi 包,但我对它的一些基本方面感到困惑。
我的包依赖于SNPknock。当我尝试在新系统(Ubuntu 18.04)上安装它时,我得到:
pip install snpknock
Collecting snpknock
Using cached https://files.pythonhosted.org/packages/68/a0/ceb6adc2b7f1a3009f2077c157a99640094021a66f881cb678ecf4
78887f/SNPknock-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
You don't seem to have Cython installed. Please get a
copy from www.cython.org and install it
我已经提取了 setup.py from the tarball here,其中包括该错误消息。
这是我的困惑。 setup.py 文件将 Cython 指定为依赖项:
DEPENDENCIES = ['Cython>='+CYTHON_MIN_VERSION,
'numpy>='+NUMPY_MIN_VERSION]
但是,它也导入 Cython,但似乎需要这样做才能对某些模块进行 cython 化。这一切似乎有点循环,但我怀疑我(或这个包的作者)在这个过程中遗漏了一些东西。
【问题讨论】:
标签: python installation cython pypi