Changes between Version 1 and Version 2 of PackageCedaccInstall/ExampleInstalls


Ignore:
Timestamp:
13/02/15 12:29:21 (7 years ago)
Author:
astephen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PackageCedaccInstall/ExampleInstalls

    v1 v2  
    1515 * Installation tools: virtualenv and pip 
    1616 * Location of installation: Any directory (within a virtual environment created by running: {{{virtualenv-2.7}}}). 
     17 
     18{{{ 
     19# Create, and enter, a directory in which to install the package 
     20$ mkdir cedacc 
     21$ cd cedacc/ 
     22 
     23# Set up a virtualenv (to install the python libraries) called "venv" 
     24# The argument "--system-site-packages" will pick up the installations of libraries such as "netCDF4" from the main python installation. 
     25$ virtualenv-2.7 --system-site-packages venv 
     26 
     27# Activate the virtualenv: This means that the PATH and PYTHONPATH will point to the appropriate commands/libraries under the "venv" directory. 
     28$ . venv/bin/activate 
     29 
     30# Check that your $http_proxy and $https_proxy environment variables are set to: 
     31$ export http_proxy=http://webproxy.metoffice.gov.uk:8080 
     32$ export https_proxy=http://webproxy.metoffice.gov.uk:8080 
     33 
     34# Install the CEDA-CC package using pip 
     35$ pip install ceda-cc 
     36}}} 
     37 
     38CEDA-CC relies on a configuration directory that contains specifications and vocabularies for each project. If you want a copy of this directory locally, e.g. in {{{config_dir}}} you can run: 
     39 
     40{{{ 
     41$ ceda-cc --copy-config config_dir 
     42Configuration directory copied to config_dir.  Set CC_CONFIG_DIR to use this configuration. 
     43}}} 
     44 
     45You should set the environment variable to make sure that this directory is used. 
     46 
     47{{{ 
     48$ export CC_CONFIG_DIR=$PWD/config_dir 
     49}}} 
     50 
     51 
     52 
     53 
     54