[SciPy-User] Enthought Python Distribution questions

Andreas lists at hilboll.de
Thu Aug 18 10:45:27 EDT 2011


Hi Chris,

I installed EPD 7.1 in my home directory, in ~/lib/epd-7.1-1-x86_64/.
Then I installed virtualenv and virtualenvwrapper in the EPD directory,
by using

   $ ~/lib/epd-7.1-1-x86_64/bin/pip install virtualenv
   $ ~/lib/epd-7.1-1-x86_64/bin/pip install virtualenvwrapper

Now, I can just do something like

   $ source ~/lib/epd-7.1-1-x86_64/bin/virtualenvwrapper.sh
   $ mkvirtualenv myepd

In the virtualenv, I need to make sure that PATH and PYTHONPATH are set
correctly. For this, I create a postactivate script:

   $ cat ~/.virtualenvs/myepd/bin/postactivate
   #!/bin/bash
   # This hook is run after this virtualenv is activated.
   export PATH=~/.virtualenvs/myepd/bin:~/lib/epd-7.1-1-x86_64/bin:$PATH
   export PYTHONPATH=~/lib/epd-7.1-1-x86_64/lib/python2.7/site-packages
   export LD_LIBRARY_PATH=~/lib/epd-7.1-1-x86_64/lib

Now, you can just switch to your EPD environment using the ``workon``
command:

   $ python -V && which python
   Python 2.6.5
   /usr/bin/python
   $ source ~/lib/epd-7.1-1-x86_64/bin/virtualenvwrapper.sh
   $ workon myepd
   (myepd)$ python -V && which python
   Python 2.7.2 -- CUSTOM
   /home/USERNAME/.virtualenvs/myepd/bin/python

Hope this helps!

Cheers,
Andreas.


On 2011-08-18 16:26, Chris Withers wrote:
> Hi All,
> 
> A couple of questions about EPD, if this is the wrong list, please point 
> me at the right one:
> 
> - How can I install EPD in such a way that it leaves my system python 
> completely alone? I installed it on my Mac and suddenly I have Python 
> 2.7 with all the libraries everywhere, which isn't what I want :-S
> I'm now too petrified to try and install EPD on any of my Debian, Red 
> Hat or Ubuntu servers in case the same thing is done there, which would 
> have much more catastrophic consequences.
> 
> I'm looking for something akin to 'make altinstall' for CPython, I'd 
> love to be able to get a python-epd-x.y.z in the same way that gives me 
> just a pythonx.y.
> 
> - Once I have EPD installed, where can I find all the documentation for 
> the included packages? I spend a lot of time working on trains and 
> planes, and having the docs available offline would be extremely useful :-)
> 
> cheers,
> 
> Chris
> 



More information about the SciPy-User mailing list