[yt-svn] commit/yt: MatthewTurk: Adding readline to the install script if it can't be imported.

Bitbucket commits-noreply at bitbucket.org
Wed Jan 25 09:50:14 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/298c9a40e16f/
changeset:   298c9a40e16f
branch:      yt
user:        MatthewTurk
date:        2012-01-25 18:50:06
summary:     Adding readline to the install script if it can't be imported.
affected #:  1 file

diff -r 006e3604c3fa87f7bb3ec92be3bf1502d383a4b2 -r 298c9a40e16f34d2683f40ec302dc457306ccc47 doc/install_script.sh
--- a/doc/install_script.sh
+++ b/doc/install_script.sh
@@ -557,6 +557,12 @@
 touch done
 cd $MY_PWD
 
+if !(${DEST_DIR}/bin/python2.7 -c "import readline")
+then
+    echo "Installing pure-python readline"
+    ${DEST_DIR}/bin/pip install readline
+fi
+
 if [ $INST_ENZO -eq 1 ]
 then
     echo "Cloning a copy of Enzo."

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list