-
Notifications
You must be signed in to change notification settings - Fork 11
/
conda-notes
61 lines (45 loc) · 1.36 KB
/
conda-notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
-- Only work on the conda install on sgn04. However, since it can't write to project, you have to rsync:
rsync -arv ~/viewer-dev-miniconda/ edison:cosmo/webapp/viewer-dev/viewer-dev-conda
-- Environment created like:
on sgn04:
export PATH=~/miniconda3b/bin
unset PYTHONPATH
cd /tmp
conda create -p viewer-dev-conda-2 python
source activate /tmp/viewer-dev-conda-2
pip install django
pip install numpy
pip install scipy
pip install matplotlib
#pip install fitsio
pip install psycopg2
pip install astropy
pip install pillow
pip install uwsgi
conda install swig
pip install --no-deps --upgrade git+https://github.com/esheldon/fitsio.git#egg=fitsio
wget ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.bz2
tar xjf wcslib.tar.bz2
mv wcslib-*/ wcslib
cd wcslib
./configure --prefix=$CONDA_PREFIX
make
make install
cd ..
export PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig
git clone https://github.com/dstndstn/astrometry.net.git
mv astrometry.net/ astrometry
cd astrometry/
make -k
make -k py
cd ..
git clone https://github.com/dstndstn/tractor.git
mv tractor tractor-git
(cd tractor-git && make)
ln -s tractor-git/tractor .
git clone https://github.com/legacysurvey/legacypipe.git
mv legacypipe/ legacypipe-git
ln -s legacypipe-git/py/legacypipe/ .
ln -s legacypipe-git/py/legacyanalysis/ .
cd /tmp
rsync -arv viewer-dev-conda-2 cori:cosmo/webapp/viewer-dev/