Skip to content

astroconda/ssb-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ssb-utils

A collection of wrappers for use by the Science Software Branch at STScI.

Installation

git clone http://github.com/astroconda/ssb-utils.git

It is recommended you copy the ssb-utils directory to a "safe" place (i.e. not your Downloads directory)

Requirements

  • BASH >=3.2

conda.sh

Activation

source /path/to/ssb-utils/conda.sh

Usage

$ ssb --help
Usage: ssb {-i|-u} {-p|-d} [-an] [[package] ...]

General Arguments:
    --help          -h      This usage message
    --name [env]    -n      Update existing environment by name
    --public        -p      Use astroconda
    --dev           -d      Use conda-dev
    --all           -a      Update all packages (supersedes [package] requests)
    --yes           -y      Do not prompt (use with care)

Mode Arguments:
    --install       -i      Perform an installation
    --update        -u      Perform an update
    --create        -c      Create an environment

Positional Arguments:
package                 Name of package(s) to update

Examples

(There are many permutations of this command, but the samples below should be sufficient to get you started)

Creating a dev environment

ssb --create --dev --name mydev27 python=2.7 stsci
ssb --create --dev --name mydev35 python=3.5 stsci

Creating an AstroConda environment

ssb --create --public --name mypublic27 python=2.7 stsci
ssb --create --public --name mypublic35 python=3.5 stsci

Updating a dev environment by name

ssb --update --all --dev --name mydev

Updating an active dev environment

source activate mydev
ssb --update --all --dev

Installing a package into a dev environment

ssb --install --dev --name mydev [pkg_name]

Installing a package into an active dev environment

source activate mydev
ssb --install --dev [pkg_name]

Support

Use at your own risk.

About

Helper scripts (Unsupported)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages