Changes between Version 13 and Version 14 of Software/MSI/ConfigurationNeptune


Ignore:
Timestamp:
15/05/09 17:12:09 (10 years ago)
Author:
pjkersha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Software/MSI/ConfigurationNeptune

    v13 v14  
    2222 
    2323== Python Configuration == 
    24 System default is Python 2.5 in `/usr/bin`.  Site packages are installed in `/usr/local/lib64/python2.5/site-packages` 
     24System default is Python 2.5 in `/usr/bin`.  Under SuSE, the site package location is customised to `/usr/local/lib64/python2.5/site-packages` with `/usr/lib64/python2.5/distutils/distutils.cfg`. 
    2525 
    2626Application packages will be installed separately to avoid version conflicts and maintenance problems with a single package area.  `virtualenv` or `zc.buildout` could achieve this.  `virtualenv` is easy to set-up with `mod_wsgi` - see [wiki:Software/MSI/ConfigurationNeptune/ApacheConfiguration Apache Configuration].  `zc.buildout` enables overriding control over package versions to define a package and version combination to make a stable deployment.  `zc.buildout` [http://pypi.python.org/pypi/collective.recipe.modwsgi collective.recipe.modwsgi] enables integration with `mod_wsgi`. 
     
    3636}}} 
    3737 
    38 This appears to be a problem with installations on 64-bit architectures.  Fixed with: 
     38This is a known problem with SuSE: 
     39 
     40http://groups.google.com/group/python-virtualenv/browse_thread/thread/aa69f8b738d23652 
     41 
     42This discussion suggests commenting out the prefix setting in `/usr/lib64/python2.5/distutils/distutils.cfg`, but a less intrusive option is to override the setting by creating an [http://docs.python.org/install/index.html#alternate-installation-unix-the-prefix-scheme alternative] config file `setup.cfg` or `~/.pydistutils.cfg`: 
    3943 
    4044{{{ 
    41 $ export PYTHONPATH=/usr/local/lib64/python2.5/site-packages 
     45$ cat > ./setup.cfg 
     46[build_py] 
     47optimize=0 
     48 
     49[install] 
     50prefix=/mypath/myenv 
     51optimize=0 
     52 
    4253$ virtualenv --no-site-packages myenv 
    4354}}} 
    4455 
    45 Install setuptools: 
     56Move the `setup.cfg` file to within the `virtualenv` directory so that it doesn't interfere with other components: 
    4657{{{ 
     58$ mv ./setup.cfg ./myenv 
     59}}} 
     60Install setuptools `cd`ing to `myenv` directory first to ensure that `setup.cfg` is picked up: 
     61{{{ 
     62$ cd ./myenv 
    4763$ wget http://peak.telecommunity.com/dist/ez_setup.py 
    48 $ ./myenv/bin/python ./ez_setup.py 
     64$ ./bin/python ./ez_setup.py 
    4965}}} 
    5066