python setuptool how can I add dependency for libxml2-dev and libxslt1-dev?

与世无争的帅哥 提交于 2019-12-08 07:30:53

问题


My application needs lxml >= 2.1, but to install lxml its requied to install libxml2-dev libxslt1-dev else it raises error while installing the lxml,

is there a way that using python setup tool I can give this as dependency in my setup.py....


回答1:


Not really ... setuptools only handle dependencies on package wich belongs already to pypi. So if you want these kind of dependencies, i think that you have to select the packaging technology brought by your favorite distribution.

But, you can override your setuptools build or install command to make extra check before installing the package. To do so, please have a look of this answer.



来源:https://stackoverflow.com/questions/3493151/python-setuptool-how-can-i-add-dependency-for-libxml2-dev-and-libxslt1-dev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!