Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision d0a634bff0ab79420b9e28abd21f1f48146f642c authored by Matt Garthwaite on 22 May 2017, 05:42:23 UTC, committed by Matt Garthwaite on 22 May 2017, 05:42:23 UTC
update version to 0.2.0
1 parent bce00e8
  • Files
  • Changes
  • 0d3ff26
  • /
  • conda.md
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:d0a634bff0ab79420b9e28abd21f1f48146f642c
directory badge
swh:1:dir:0d3ff262e5d2f2efd5b1617f0cef1c0342a8f54e
content badge
swh:1:cnt:5bbf29d6d012fb3ec283b6264ce086d9138eb55d

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
conda.md
Instructions for setting up an Anaconda virtual environment on a typical Red Hat linux server.
 
## Install Anaconda:

For 64-bit linux download this version of the conda installer: https://repo.continuum.io/archive/Anaconda2-4.1.1-Linux-x86_64.sh

Run the installer using the linux bash interpreter:
    
    bash Anaconda2-4.1.1-Linux-x86_64.sh

Accept all default options. This will install anaconda in the `~/anaconda2` directory.
 
## Set up proxys for pip (only applicable if working behind proxy):
 
    export http_proxy=<proxy_server>:<port>
    export https_proxy=<proxy_server>:<port>
 
## Set up `~/.condarc` with proxy pass information (only applicable if working behind proxy):
 
For conda installer to work you need to create a `~/.condarc` file with the following proxy-pass information:
 
    proxy_servers:
        http: <proxy_server>:<port>
        https: <proxy_server>:<port>
        
## Clone the PyRate repo:

The rest of the instructions assume that you cloned the `PyRate` Git repository in your home directory: 

    cd ~
    git clone git@github.com:GeoscienceAustralia/PyRate.git
    
This will prompt for your rsa key passphrase. If you have access to `PyRate` repo and once you have entered the passphrase, `PyRate` will clone in your current (home) directory. 


## Set up envrionment variables

You need to add the directory containing the `pyrate/` directory to the `PYTHONPATH` environment variable, and the environment variable `PYRATEPATH` needs to point to the directory containing the `tests/` directory:

	export PYRATEPATH="~/PyRate"
	export PYTHONPATH=$PYRATEPATH/:$PYTHONPATH
    

## Activate `anaconda` and install `conda-env`

    source ~/anaconda2/bin/activate ~/anaconda2/
    conda install -c conda conda-env        

The `conda-env` package enables YAML based installation.

Note that using the `source activate` command only works cleanly when using the bash shell

## Create the `pyrate` environment

The required packages for PyRate are listed in the environment.yml (YAML format) file:
    
    conda env create -f $PYRATEPATH/environment.yml

## Activate the `pyrate` environment

    source ~/anaconda2/bin/activate pyrate

## Run `PyRate` tests

To run the full suite of tests, use the following command inside the `PyRate` directory:
		
	cd ~/PyRate
	py.test tests/

To run the tests for a particular module:

	py.test tests/test_orbital.py

## Deactivate

Once you are done using `PyRate` you could deactivate the conda environment using: 

    source deactivate

## Back to main Anaconda environment if you need to:
    
    source activate /home/user/anaconda2
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API