Avoid dependency_links / find_links
Hi, We manage our projects with setuptools. For this we have a local PyPi mirror with just our required packages. This mirror is specified in our setuptools environments using the index_url directive. The basic idea is: we don't want to access the internet when installing packages. Today I had to realized that we haven't been reaching that goal as Pylons contains a dependency_links pointing to pylonshq.com. So the question would be: is there any way to avoid following any dependency_links and/or find_links paths and only use the index_url? I have quickly checked the setuptools source code and couldn't find any way to do this. Would a patch be accepted if I implemented that behavior? Are there other approaches to do what I'm trying to do? Thanks in advance Patrice
At 12:02 AM 10/20/2009 +0200, Patrice Neff wrote:
So the question would be: is there any way to avoid following any dependency_links and/or find_links paths and only use the index_url?
Yes. See: http://peak.telecommunity.com/DevCenter/EasyInstall#restricting-downloads-wi... which explains how to use the command line or configuration files to control this. Also see: http://peak.telecommunity.com/DevCenter/EasyInstall#command-line-options under the '--allow-hosts' option for more details on the syntax.
On Oct 20, 2009, at 12:30 AM, P.J. Eby wrote:
Yes. See:
http://peak.telecommunity.com/DevCenter/EasyInstall#restricting-downloads-wi...
which explains how to use the command line or configuration files to control this. Also see:
http://peak.telecommunity.com/DevCenter/EasyInstall#command-line-options
under the '--allow-hosts' option for more details on the syntax.
Thank you, this works great for my purpose. Sorry I missed that in the documentation. Patrice
participants (2)
-
P.J. Eby
-
Patrice Neff