Random ...
 
December 2017
S M T W T F S
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Tags ...
Links



python+zope++:: Installing python from source
Posted at 07.Apr,2010 21:51  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

... And working with multiple python versions.

At work, I do a lot of zope dev and deployment that requires python versions 2.4.x or 2.5.x

Since most of the time newer linux install comes with newer python version, I need to install python from source.

Here's what I normally do:

  • make sure my box have all the necessary tools and libs to compile
  • get the required python version
  • untar:
      tar -zxf Python-version.tar.gz
    
  • cd Python-version
  • ./configure --prefix /usr/local/pyversion
  • make && make install

Python will be installed at /usr/local/pyversion

Now to work with zope, I normally install easy_install and virtualenv:

  • get ez_setup.py
  • /usr/local/pyversion/bin/python ez_setup.py
  • /usr/local/pyversion/bin/easy_install virtualenv
  • /usr/local/pyversion/bin/virtualenv --no-site-packages /path/to/myzopeenv
  • activate myzopeenv :
      source /path/to/myzopeenv/bin/activate
      easy_install grokproject
      easy_install zope2
    

Now that we're in our custom python version environment, we can do what ever we want, install grok, zope2, etc and we will not touch the default system python.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/248/tbping 

Comments
Post a comment