문제

I am creating an in-house Python package for my company, and one package of its dependencies has a critical bug/misfeature (for what I would do, at least). I patched it and submitted the patch, but it isn’t merged to the upstream branch yet (and seems not going to be available on the PyPI soon). I have to use this patched feature right now, but how can I specify a dependency of this local patched package by using setuptools/Distribute?

Any good ideas?

도움이 되었습니까?

해결책

In most general terms, call your package like eg orig-package-name-1.2.3-COMPANYNAME1.ext (where ext can be egg, tar.gz, tar.bz2, zip, ...) and add your location with find_links mechanism. Some inspiring example could be found in the Distribute’s documentation

Then change your packages to depend on that particular version. All this is simplest to do with buildout, where production configuration is explicitly bound to desired versions (plus maybe md5 sums can be specified).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top