[Yt-svn] yt-commit r747 - branches/yt-1.0/doc
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Sep 2 09:39:45 PDT 2008
Author: mturk
Date: Tue Sep 2 09:39:44 2008
New Revision: 747
URL: http://yt.spacepope.org/changeset/747
Log:
Changing to check out from SVN
Modified:
branches/yt-1.0/doc/install_script.sh
Modified: branches/yt-1.0/doc/install_script.sh
==============================================================================
--- branches/yt-1.0/doc/install_script.sh (original)
+++ branches/yt-1.0/doc/install_script.sh Tue Sep 2 09:39:44 2008
@@ -1,9 +1,10 @@
-# Modify this line and uncomment to set where we install
-#MY_DIR=$HOME/yt-`uname -p`/
+# Modify this line to change where we install
+#MY_DIR="/scratch/yt-`uname -p`/"
if [ -z "$MY_DIR" ]
then
echo "Edit this script, set the MY_DIR parameter and re-run."
+
exit 1
fi
@@ -12,12 +13,17 @@
# Individual processes
[ ! -e hdf5-1.6.7.tar.gz ] && wget ftp://ftp.hdfgroup.org/HDF5/current16/src/hdf5-1.6.7.tar.gz
+
[ ! -e Python-2.5.2.tgz ] && wget http://python.org/ftp/python/2.5.2/Python-2.5.2.tgz
[ ! -e pytables-2.0.4.tar.gz ] && wget http://www.pytables.org/download/stable/pytables-2.0.4.tar.gz
+
[ ! -e matplotlib-0.91.4.tar.gz ] && wget "http://downloads.sourceforge.net/matplotlib/matplotlib-0.91.4.tar.gz"
[ ! -e numpy-1.0.4.tar.gz ] && wget "http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz?modtime=1194536674&big_mirror=0"
+
[ ! -e wxPython-src-2.8.7.1.tar.bz2 ] && wget http://downloads.sourceforge.net/wxpython/wxPython-src-2.8.7.1.tar.bz2
-[ ! -e yt-0.3.tar.gz ] && wget http://yt.enzotools.org/files/yt-0.3.tar.gz
+[ ! -e yt ] && svn co http://svn.enzotools.org/yt/branches/yt-1.0/ ./yt-1.0-svn
+
+
if [ ! -e hdf5-1.6.7/done ]
then
@@ -26,6 +32,7 @@
cd hdf5-1.6.7
./configure --prefix=$MY_DIR/ || exit 1
make install || exit 1
+
touch done
cd ..
fi
@@ -36,6 +43,7 @@
[ ! -e Python-2.5.2 ] && tar xvfz Python-2.5.2.tgz
cd Python-2.5.2
./configure --prefix=$MY_DIR/ || exit 1
+
make || exit 1
make install || exit 1
touch done
@@ -47,6 +55,7 @@
if [ ! -e numpy-1.0.4/done ]
then
echo "Doing NumPy"
+
[ ! -e numpy-1.0.4 ] && tar xvfz numpy-1.0.4.tar.gz
cd numpy-1.0.4
$MY_DIR/bin/python2.5 setup.py install || exit 1
@@ -55,12 +64,14 @@
fi
if [ ! -e pytables-2.0.4/done ]
+
then
echo "Doing PyTables"
[ ! -e pytables-2.0.4 ] && tar xvfz pytables-2.0.4.tar.gz
cd pytables-2.0.4
$MY_DIR/bin/python2.5 setup.py install --hdf5=$MY_DIR/ || exit 1
touch done
+
cd ..
fi
@@ -69,12 +80,14 @@
echo "Doing wxPython"
[ ! -e wxPython-src-2.8.7.1 ] && tar xvfj wxPython-src-2.8.7.1.tar.bz2
cd wxPython-src-2.8.7.1
+
./configure --prefix=$MY_DIR/ --with-opengl || exit 1
make install || exit 1
cd contrib
make install || exit 1
cd ../wxPython/
$MY_DIR/bin/python2.5 setup.py WX_CONFIG=$MY_DIR/bin/wx-config install || exit 1
+
touch ../done
cd ../..
fi
@@ -85,28 +98,29 @@
[ ! -e matplotlib-0.91.4 ] && tar xvfz matplotlib-0.91.4.tar.gz
cd matplotlib-0.91.4
$MY_DIR/bin/python2.5 setup.py install || exit 1
- touch done
- cd ..
-fi
-if [ ! -e yt-0.3/done ]
-then
- echo "Doing yt installation"
- [ ! -e yt-0.3 ] && tar xvfz yt-0.3.tar.gz
- cd yt-0.3
- echo $MY_DIR > hdf5.cfg
- $MY_DIR/bin/python2.5 setup.py install || exit 1
touch done
cd ..
fi
+echo "Doing yt update"
+cd yt-1.0-svn
+svn up
+echo $MY_DIR > hdf5.cfg
+$MY_DIR/bin/python2.5 setup.py install || exit 1
+touch done
+cd ..
+
+
echo "yt is now installed in $MY_DIR ."
echo "To run from this new installation, the a few variables need to be"
+
echo "prepended with the following information:"
echo
echo "PATH => $MY_DIR/bin/"
echo "PYTHONPATH => $MY_DIR/lib/python2.5/site-packages/"
echo "LD_LIBRARY_PATH => $MY_DIR/lib/"
+
echo
echo "You can get a fully-loaded yt prompt by running:"
echo "$MY_DIR/bin/yt"
More information about the yt-svn
mailing list