Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

export PYTHON_VERSION=2.7
export FERMI_CONDA_ENV=fermitools-dev
export FERMI_CONDA_CHANNELS="-c conda-forge/label/cf201901 -c fermi"
export CONDA_CHANNELS="conda-forge"
conda create -y --name $FERMI_CONDA_ENV python=$PYTHON_VERSION
conda activate $FERMI_CONDA_ENV
conda install -y --name $FERMI_CONDA_ENV $FERMI_CONDA_CHANNELS -c $CONDA_CHANNELS --only-deps fermitools
conda install -y --name $FERMI_CONDA_ENV $FERMI_CONDA_CHANNELS -c $CONDA_CHANNELS fermi-repoman scons swig
Checkout source code
git clone https://github.com/fermi-lat/Fermitools-conda.git
git clone https://github.com/fermiPy/fermipy.git
mkdir <area for fermitools src>
cd <area for fermitools src>
repoman --remote-base https://github.com/fermi-lat checkout --force --develop ScienceTools FT_01-02-23_dev
git clone https://github.com/fermi-lat/Fermitools-conda.git  conda # or whatever tag you want

 

Build fermitools
cd FT_01-02-23_dev
export PREFIX="$CONDA_PREFIX"
export CPU_COUNT=2
export RECIPE_DIR="/Users/echarles/glast/releases/Fermitools-conda"
source ../Fermitools-conda/build.sh
export DYLD_LIBRARY_PATH="$CONDA_PREFIX/lib/fermitools"

(Where i commented out the line Fermitools-conda/build.sh that calls repoman to redo the checkout)

 

Build fermipy
git clone https://github.com/fermiPy/fermipy.git
cd cd ../fermipy
export CONDA_DEPS='scipy matplotlib pyyaml numpy astropy gammapy healpy astropy-healpix'
conda install -y --name $FERMI_CONDA_ENV $FERMI_CONDA_CHANNELS -c $CONDA_CHANNELS $CONDA_DEPS
python setup.py develop

...