[Distutils] custom package index issue

Tarek Ziadé ziade.tarek at gmail.com
Thu Jan 15 15:00:54 CET 2009


On Thu, Jan 15, 2009 at 2:44 PM, Eric Lemoine <eric.c2c at gmail.com> wrote:
> Hi
>
> For a project I'm involved in we created our own package index. The
> package index includes our package (mapfish), as well as its direct
> and indirect dependencies.
>
> Then, the installation of the "mapfish" package and its dependencies
> is done with this command:
> easy_install -i http://dev.camptocamp.com/packages/mapfish/1.0/index
> mapfish==1.0
>
> The installation command works, but some indirect dependencies aren't
> downloaded from our package index but from other sources. For
> example,"simplejson" which "pylons" depends on (which "mapfish"
> depends on), is downloaded from
> "http://pylons.cachefly.net/download/0.9.6.2/simplejson-1.7.1-py2.5.egg"
> as opposed to be downloaded from
> "http://dev.camptocamp.com/packages/mapfish/1.0/simplejson-1.7.1.tar.gz".

Your index seems correct,

Maybe you have some dependency_links amongst your packages that forces
download links,

with easy_install you can filter the allowed host to prevent it, see:

http://peak.telecommunity.com/DevCenter/EasyInstall#restricting-downloads-with-allow-hosts

Try this:

$ easy_install -i http://dev.camptocamp.com/packages/mapfish/1.0/index
--allow-hosts=dev.camptocamp.com mapfish==1.0

You will see som ***BLOCKED*** lines and you will figure out what is happening

I was able to install your mapfish package this way FYI

>
> We'd like every mapfish dependency to be downloaded from our package
> index. Does anyone know how to achieve this?
>
> Thanks a lot,
>
> --
> Eric
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>



-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/


More information about the Distutils-SIG mailing list