开发者

How to use "checkinstall" with Python packages that use "setuptools"

On Ubuntu/Debian I use checkinstall package when installing packages from source

sudo checkinstall make install

or

sudo checkinstall python setup.py install

My problem is that Python packages that use setuptools (that modify easy-install.pth file) can't be installed correctly, as checkinstall asks to overwrite easy-install.pth for every new Python package that uses it.

I know I can use pip install <package> but depen开发者_JAVA技巧dencies coordinated by Debian packaging system would not "see" this package if not processed at least with checkinstall in lack of my better knowledge.

I hope my terminology is correct and I would like to know if this problem can be somehow resolved, asking myself:

  • can checkinstall somehow work with Python package that uses setuptools?, or
  • can Python package that uses setuptools be installed differently (like avoiding write to easy-install.pth with some switch to python setup.py install command or similar?


You can use this:

checkinstall --exclude /usr/local/lib/python2.7/dist-packages/easy-install.pth
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜