Changes between Initial Version and Version 1 of CdatLite/SuperEasyInstall


Ignore:
Timestamp:
06/02/09 16:51:39 (12 years ago)
Author:
spascoe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CdatLite/SuperEasyInstall

    v1 v1  
     1Sometimes {{{easy_install}}} doesn't seem so easy.  Maybe you don't have full control of your python environment because you don't have root access.  The tool [http://pypi.python.org/pypi/virtualenv virtualenv] allows you to create isolated python environments where you can {{{easy_install}}} anything you want.  It also allows you to create custom install scripts for putting packages in your virtualenv.   
     2 
     3I've used this feature to create a script that will download cdat_lite and csml into their own virtualenv.  This should work even if you don't have root access to the machine you are using.  You don't need to run ez_setup.py to get setuptools and you definitely don't need to install virtualenv. 
     4 
     5= csml-bootstrap.py = 
     6 
     7The bootstrap script can be downloaded from http://ndg.nerc.ac.uk/dist/csml-bootstrap.py.  It requires a few things to work: 
     8 
     9 1. Python 2.5+.  This is needed for cdat_lite-5.0 
     10 1. distutils.  If your system python doesn't have this module you will need to install the python development package with your system's package manager. 
     11 1. NetCDF Libraries.  If they aren't in a standard location set {{{NETCDF_HOME}}}. 
     12 
     13Now just do: 
     14 
     15{{{ 
     16> python csml-bootstrap.py csml_home 
     17New python executable in csml_home/bin/python 
     18... 
     19}}} 
     20 
     21You see lots of compile output and should then have your own python executable with access to csml and cdat_lite 
     22 
     23{{{ 
     24> csml_home/bin/python 
     25Python 2.5.1 (r251:54863, Jul 31 2008, 22:53:39) 
     26[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 
     27Type "help", "copyright", "credits" or "license" for more information. 
     28>>> import cdms2 
     29>>> import csml 
     30NASAAmes interface not available. CSML will still work, but won't support NASA Ames files 
     31>>> 
     32}}} 
     33 
     34As you can see nappy isn't included yet.  However, once nappy is fully eggable it could be downloaded by the bootstrap script to.