开发者

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

My application needs lxml >= 2.1, but to install lxml its requied to install libxml2-dev libxslt1-dev else it r开发者_StackOverflow社区aises error while installing the lxml,

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


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜