A collection of wrappers for use by the Science Software Branch at STScI.
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)
- BASH >=3.2
source /path/to/ssb-utils/conda.sh
$ 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
(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]
Use at your own risk.