如何在使用"setuptools"的Python包中使用"checkinstall"

the*_*eta 5 python linux packaging setuptools

在Ubuntu/Debian上我checkinstall从源代码安装包时使用包

sudo checkinstall make install

要么

sudo checkinstall python setup.py install

我的问题是使用setuptools(修改easy-install.pth文件)的Python包无法正确安装,因为checkinstall要求easy-install.pth为每个使用它的新Python包覆盖.

我知道我可以使用,pip install <package>但Debian打包系统协调的依赖关系不会"看到"这个包,如果没有处理,至少checkinstall缺乏我更好的知识.

我希望我的术语是正确的,我想知道这个问题是否可以以某种方式解决,问自己:

  • 可以checkinstall某种方式使用使用setuptools?,或的 Python包
  • 可以使用setuptools不同的Python包安装(比如避免写入easy-install.pth某些切换到python setup.py install命令或类似?

A.B*_*.B. 2

你可以使用这个:

checkinstall --exclude /usr/local/lib/python2.7/dist-packages/easy-install.pth
Run Code Online (Sandbox Code Playgroud)