Hi,

The Subject: may seem odd, given that Pylons is a Web Framework :-) However, what I'm trying to achieve is a 100% repeatable installation, which is oblivious to any updated packages on PyPi, etc. I'm trying to ensure that if I run 'go-pylons.py' on a development machine, then repeat the same thing on a production machine, say 3 months later, the same package versions will be installed regardless of if any updates have been pushed to PyPi.

In order to do this, I've set up an Apache Web Server which hosts known-good versions of the packages and then put the following in 'setup.cfg':

[easy_install]
allow-hosts = localhost
index-url = http://localhost/dist

Everything goes well, up until PasteScript is fetched and installation is attempted. At this point, I see the following:

Searching for PasteScript>=1.7.3
Reading http://localhost/dist/PasteScript/
Best match: PasteScript 1.7.3
Downloading http://localhost/dist/PasteScript/PasteScript-1.7.3.tar.gz
Processing PasteScript-1.7.3.tar.gz
Running PasteScript-1.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WkNUCm/PasteScript-1.7.3/egg-dist-tmp-QyqROl Download error: [Errno -2] Name or service not known -- Some packages may not be found!

It then tries to download Paste and PasteDeploy from Pypi, which in this environment obviously fails.

It sounds as if something somewhere just needs to force a particular order (i.e. Paste, PasteDeploy, then PasteScript) or that PasteScript somehow needs to be able to inherit/take notice of my setup.cfg file. The Paste & PasteDeploy tarballs are available from localhost, it's just that PasteScript doesn't seem to know to find them there.

Has anyone tried to do something similar before? Does anyone know how to fix the installation order of the Paste* packages?

I have a workaround at the moment which is to manually create the virtualenv, easy_install Paste + PasteDeploy, then easy_install Pylons.

Thanks,

Matt.

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to