Mike Orr wrote:
On Sat, Feb 6, 2010 at 3:30 PM, Jason S. <[email protected]> wrote:
As far as a repeatable Pylons installation from local packages goes,
I've set up a system using pip -- not sure about easy_install.
I tried to use "pip --download-cache=/mydir" to make a local package
archive that people at work could use, but I couldn't find any
combination of --download-cache or --find-links that would work. It
said --find-links had to be a URL, but I couldn't find anything on
whether it recognized file: URLs. I've heard of people making a local
mirror of PyPI but I haven't tried that yet.
Many thanks to everyone who gave their suggestions. As it is, it turns
out that easy_install's documentation [0] shows the commands I should
have been using all along:
# From a networked-machine (the -f is only needed because of installing
# 1.0b1; 0.9.7 would work without this flag).
$ mkdir Pylons-packages
$ easy_install -zmaxd Pylons-packages \
-f http://pylonshq.com/download/1.0b1 Pylons
# Now transfer them to the non-networked machine
$ virtualenv --no-site-packages myvenv
$ source myvenv/bin/activate
$ easy_install -H None -f Pylons-packages Pylons
This also helps out with another query I would have had, which is how to
install packages like simplejson that have C modules when a C compiler
isn't installed on a machine. When run in the above mode, easy_install
simply creates binary eggs, including any C modules, so as long as the
machines are running compatible OS, Python and Compiler/C Lib versions
then the packages should work just fine.
I couldn't find a way of easily integrating the above into go-pylons.py,
and I think it's an esoteric enough need that I am probably better off
running 'virtualenv' and 'easy_install' manually anyway.
Thanks again,
Matt.
[0]
http://peak.telecommunity.com/DevCenter/EasyInstall#installing-on-un-networked-machines
--
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.