setuptools and passing options to dependencies

一世执手 提交于 2019-12-12 13:07:53

问题


I'm trying to package a module for pypi and I have mercurial as one of the dependencies.

The target machines may or may not have build tools so I'd like to install mercurial with the --pure option in place, but I couldn't find a way to instruct setup.py to install the dependencies in a specified manner. Other than installing the deps separately, I couldn't find a way to do this.

The best I have so far is https://groups.google.com/forum/?fromgroups#!topic/turbogears/t9rZAMSj_NQ

Which although very clever is a bit of a hack. Like person in the link I'm sure there must be a better way to do this.


Google makes it exceptionally hard to search for flags, switches and specific options since it doesn't support punctuation, so the search was being extra un-helpful.

来源:https://stackoverflow.com/questions/17045817/setuptools-and-passing-options-to-dependencies

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