<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/a474e0c679f8/">https://bitbucket.org/yt_analysis/yt/commits/a474e0c679f8/</a> Changeset:   a474e0c679f8 Branch:      yt User:        xarthisius Date:        2016-04-20 18:03:47+00:00 Summary:     Merged in ngoldbaum/yt (pull request #2009)</p>
<p>merge get_yt.sh into install_script.sh, add install script tests Affected #:  3 files</p>
<p>diff -r a3f0bf738e6566959d9144adc81c2a918099615b -r a474e0c679f8d38a8431115c80c784fce575a52c doc/get_yt.sh --- a/doc/get_yt.sh +++ b/doc/get_yt.sh @@ -1,394 +1,4 @@ -# -# Hi there!  Welcome to the yt installation script. -# -# This script is designed to create a fully isolated Python installation -# with the dependencies you need to run yt. -# -# This script is based on Conda, a distribution mechanism from Continuum -# Analytics.  The process is as follows: -# -#  1. Download the appropriate Conda installation package -#  2. Install Conda into the specified directory -#  3. Install yt-specific dependencies -#  4. Install yt -# -# There are a few options listed below, but by default, this will install -# everything.  At the end, it will tell you what to do to use yt. -# -# By default this will install yt from source. -# -# If you experience problems, please visit the Help section at -# <a href="http://yt-project.org/">http://yt-project.org</a>. -# -DEST_SUFFIX="yt-conda" -DEST_DIR="`pwd`/${DEST_SUFFIX/ /}"   # Installation location -BRANCH="yt" # This is the branch to which we will forcibly update. -INST_YT_SOURCE=1 # Do we do a source install of yt? -INST_UNSTRUCTURED=1 # Do we want to build with unstructured mesh support? – -################################################################## -#                                                                # -# You will likely not have to modify anything below this region. # -#                                                                # -################################################################## – -LOG_FILE="`pwd`/yt_install.log" – -# Here is the idiom for redirecting to the log file: -# ( SOMECOMMAND 2>&1 ) 1>> ${LOG_FILE} || do_exit – -MINICONDA_URLBASE="<a href="http://repo.continuum.io/miniconda">http://repo.continuum.io/miniconda</a>" -MINICONDA_VERSION="latest" -YT_RECIPE_REPO="<a href="https://bitbucket.org/yt_analysis/yt_conda/raw/default">https://bitbucket.org/yt_analysis/yt_conda/raw/default</a>" – -if [ $INST_UNSTRUCTURED -eq 1 ] -then</p>
<ul><li><p>if [ $INST_YT_SOURCE -eq 0 ]</p></li>
<li><p>then</p></li>
<li><p>echo “yt must be compiled from source to use the unstructured mesh support.”</p></li>
<li><p>echo “Please set INST_YT_SOURCE to 1 and re-run.”</p></li>
<li><p>exit 1</p></li>
<li><p>fi</p></li>
<li><p>if [ `uname` = “Darwin” ]</p></li>
<li><p>then</p></li>
<li><p>EMBREE="embree-2.8.0.x86_64.macosx"</p></li>
<li><p>EMBREE_URL="<a href="https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz">https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz</a>"</p></li>
<li><p>else</p></li>
<li><p>EMBREE="embree-2.8.0.x86_64.linux"</p></li>
<li><p>EMBREE_URL="<a href="https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz">https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz</a>"</p></li>
<li><p>fi</p></li>
<li><p>PYEMBREE_URL="<a href="https://github.com/scopatz/pyembree/archive/master.zip">https://github.com/scopatz/pyembree/archive/master.zip</a>"</p></li></ul>
<p>-fi – -function do_exit -{</p>
<ul><li><p>echo “********************************************”</p></li>
<li><p>echo "        FAILURE REPORT:"</p></li>
<li><p>echo “********************************************”</p></li>
<li><p>echo</p></li>
<li><p>tail -n 10 ${LOG_FILE}</p></li>
<li><p>echo</p></li>
<li><p>echo “********************************************”</p></li>
<li><p>echo “********************************************”</p></li>
<li><p>echo “Failure.  Check ${LOG_FILE}.  The last 10 lines are above.”</p></li>
<li><p>exit 1</p></li></ul>
<p>-} – -function log_cmd -{</p>
<ul><li><p>echo “EXECUTING:” >> ${LOG_FILE}</p></li>
<li><p>echo "  $*" >> ${LOG_FILE}</p></li>
<li><p>( $* 2>&1 ) 1>> ${LOG_FILE} || do_exit</p></li></ul>
<p>-} – -# These are needed to prevent pushd and popd from printing to stdout – -function pushd () {</p>
<ul><li><p>command pushd “$@” > /dev/null</p></li></ul>
<p>-} – -function popd () {</p>
<ul><li><p>command popd “$@” > /dev/null</p></li></ul>
<p>-} – -function get_ytdata -{</p>
<ul><li><p>echo “Downloading $1 from yt-project.org”</p></li>
<li><p>[ -e $1 ] && return</p></li>
<li><p>${GETFILE} "<a href="http://yt-project.org/data/$1">http://yt-project.org/data/$1</a>" || do_exit</p></li>
<li><p>( ${SHASUM} -c $1.sha512 2>&1 ) 1>> ${LOG_FILE} || do_exit</p></li></ul>
<p>-} – -function get_ytrecipe {</p>
<ul><li><p>RDIR=${DEST_DIR}/src/yt-recipes/$1</p></li>
<li><p>mkdir -p ${RDIR}</p></li>
<li><p>pushd ${RDIR}</p></li>
<li><p>log_cmd ${GETFILE} ${YT_RECIPE_REPO}/$1/meta.yaml</p></li>
<li><p>log_cmd ${GETFILE} ${YT_RECIPE_REPO}/$1/build.sh</p></li>
<li><p>NEW_PKG=`conda build --output ${RDIR}`</p></li>
<li><p>log_cmd conda build --no-binstar-upload ${RDIR}</p></li>
<li><p>log_cmd conda install ${NEW_PKG}</p></li>
<li><p>popd</p></li></ul>
<p>-} – – -echo -echo -echo “========================================================================” -echo -echo “Hi there!  This is the yt installation script.  We're going to download” -echo “some stuff and install it to create a self-contained, isolated” -echo “environment for yt to run within.” -echo -echo “This will install Miniconda from Continuum Analytics, the necessary” -echo “packages to run yt, and create a self-contained environment for you to” -echo “use yt.  Additionally, Conda itself provides the ability to install” -echo “many other packages that can be used for other purposes using the” -echo “'conda install' command.” -echo -MYOS=`uname -s`       # A guess at the OS -if [ $INST_YT_SOURCE -ne 0 ] -then</p>
<ul><li><p>if [ “${MYOS##Darwin}” != “${MYOS}” ]</p></li>
<li><p>then</p></li>
<li><p>echo “Looks like you're running on Mac OSX.”</p></li>
<li><p>echo</p></li>
<li><p>echo “NOTE: you must have the Xcode command line tools installed.”</p></li>
<li><p>echo</p></li>
<li><p>echo “The instructions for obtaining these tools varies according”</p></li>
<li><p>echo “to your exact OS version.  On older versions of OS X, you”</p></li>
<li><p>echo “must register for an account on the apple developer tools”</p></li>
<li><p>echo "website: <a href="https://developer.apple.com/downloads">https://developer.apple.com/downloads</a> to obtain the"</p></li>
<li><p>echo “download link.”</p></li>
<li><p>echo</p></li>
<li><p>echo “We have gathered some additional instructions for each”</p></li>
<li><p>echo “version of OS X below. If you have trouble installing yt”</p></li>
<li><p>echo “after following these instructions, don't hesitate to contact”</p></li>
<li><p>echo “the yt user's e-mail list.”</p></li>
<li><p>echo</p></li>
<li><p>echo “You can see which version of OSX you are running by clicking”</p></li>
<li><p>echo “'About This Mac' in the apple menu on the left hand side of”</p></li>
<li><p>echo “menu bar.  We're assuming that you've installed all operating”</p></li>
<li><p>echo “system updates; if you have an older version, we suggest”</p></li>
<li><p>echo “running software update and installing all available updates.”</p></li>
<li><p>echo</p></li>
<li><p>echo “OS X 10.5.8: search for and download Xcode 3.1.4 from the”</p></li>
<li><p>echo “Apple developer tools website.”</p></li>
<li><p>echo</p></li>
<li><p>echo “OS X 10.6.8: search for and download Xcode 3.2 from the Apple”</p></li>
<li><p>echo “developer tools website.  You can either download the”</p></li>
<li><p>echo “Xcode 3.2.2 Developer Tools package (744 MB) and then use”</p></li>
<li><p>echo “Software Update to update to XCode 3.2.6 or”</p></li>
<li><p>echo “alternatively, you can download the Xcode 3.2.6/iOS SDK”</p></li>
<li><p>echo “bundle (4.1 GB).”</p></li>
<li><p>echo</p></li>
<li><p>echo “OS X 10.7.5: download Xcode 4.2 from the mac app store”</p></li>
<li><p>echo “(search for Xcode).”</p></li>
<li><p>echo “Alternatively, download the Xcode command line tools from”</p></li>
<li><p>echo “the Apple developer tools website.”</p></li>
<li><p>echo</p></li>
<li><p>echo “OS X 10.8.4, 10.9, 10.10, and 10.11:”</p></li>
<li><p>echo “download the appropriate version of Xcode from the”</p></li>
<li><p>echo “mac app store (search for Xcode).”</p></li>
<li><p>echo</p></li>
<li><p>echo “Additionally, you will have to manually install the Xcode”</p></li>
<li><p>echo “command line tools.”</p></li>
<li><p>echo</p></li>
<li><p>echo “For OS X 10.8, see:”</p></li>
<li><p>echo "<a href="http://stackoverflow.com/questions/9353444">http://stackoverflow.com/questions/9353444</a>"</p></li>
<li><p>echo</p></li>
<li><p>echo “For OS X 10.9 and newer the command line tools can be installed”</p></li>
<li><p>echo “with the following command:”</p></li>
<li><p>echo "    xcode-select --install"</p></li>
<li><p>fi</p></li>
<li><p>if [ “${MYOS##Linux}” != “${MYOS}” ]</p></li>
<li><p>then</p></li>
<li><p>echo “Looks like you're on Linux.”</p></li>
<li><p>echo</p></li>
<li><p>echo "Please make sure you have the developer tools for your OS "</p></li>
<li><p>echo “installed.”</p></li>
<li><p>echo</p></li>
<li><p>if [ -f /etc/SuSE-release ] && [ `grep --count SUSE /etc/SuSE-release` -gt 0 ]</p></li>
<li><p>then</p></li>
<li><p>echo “Looks like you're on an OpenSUSE-compatible machine.”</p></li>
<li><p>echo</p></li>
<li><p>echo “You need to have these packages installed:”</p></li>
<li><p>echo</p></li>
<li><p>echo "  * devel_C_C++"</p></li>
<li><p>echo "  * libuuid-devel"</p></li>
<li><p>echo "  * gcc-c++"</p></li>
<li><p>echo "  * chrpath"</p></li>
<li><p>echo</p></li>
<li><p>echo “You can accomplish this by executing:”</p></li>
<li><p>echo</p></li>
<li><p>echo “$ sudo zypper install -t pattern devel_C_C++”</p></li>
<li><p>echo “$ sudo zypper install gcc-c++ libuuid-devel zip”</p></li>
<li><p>echo “$ sudo zypper install chrpath”</p></li>
<li><p>fi</p></li>
<li><p>if [ -f /etc/lsb-release ] && [ `grep --count buntu /etc/lsb-release` -gt 0 ]</p></li>
<li><p>then</p></li>
<li><p>echo “Looks like you're on an Ubuntu-compatible machine.”</p></li>
<li><p>echo</p></li>
<li><p>echo “You need to have these packages installed:”</p></li>
<li><p>echo</p></li>
<li><p>echo "  * libssl-dev"</p></li>
<li><p>echo "  * build-essential"</p></li>
<li><p>echo "  * libncurses5"</p></li>
<li><p>echo "  * libncurses5-dev"</p></li>
<li><p>echo "  * uuid-dev"</p></li>
<li><p>echo "  * chrpath"</p></li>
<li><p>echo</p></li>
<li><p>echo “You can accomplish this by executing:”</p></li>
<li><p>echo</p></li>
<li><p>echo “$ sudo apt-get install libssl-dev build-essential libncurses5 libncurses5-dev zip uuid-dev chrpath”</p></li>
<li><p>echo</p></li>
<li><p>fi</p></li>
<li><p>echo</p></li>
<li><p>echo “If you are running on a supercomputer or other module-enabled”</p></li>
<li><p>echo “system, please make sure that the GNU module has been loaded.”</p></li>
<li><p>echo</p></li>
<li><p>fi</p></li></ul>
<p>-fi -if [ “${MYOS##x86_64}” != “${MYOS}” ] -then</p>
<ul><li><p>MINICONDA_OS="Linux-x86_64"</p></li></ul>
<p>-elif [ “${MYOS##i386}” != “${MYOS}” ] -then</p>
<ul><li><p>MINICONDA_OS="Linux-x86"</p></li></ul>
<p>-elif [ “${MYOS##Darwin}” != “${MYOS}” ] -then</p>
<ul><li><p>MINICONDA_OS="MacOSX-x86_64"</p></li></ul>
<p>-else</p>
<ul><li><p>echo “Not sure which Linux distro you are running.”</p></li>
<li><p>echo “Going with x86_64 architecture.”</p></li>
<li><p>MINICONDA_OS="Linux-x86_64"</p></li></ul>
<p>-fi -echo -echo “If you'd rather not continue, hit Ctrl-C.” -echo -echo “========================================================================” -echo -read -p “[hit enter] " -echo -echo "Awesome!  Here we go.” -echo – -MINICONDA_PKG=Miniconda-${MINICONDA_VERSION}-${MINICONDA_OS}.sh – -if type -P wget &>/dev/null -then</p>
<ul><li><p>echo “Using wget”</p></li>
<li><p>export GETFILE="wget -nv -nc"</p></li></ul>
<p>-else</p>
<ul><li><p>echo “Using curl”</p></li>
<li><p>export GETFILE="curl -sSO"</p></li></ul>
<p>-fi – -echo -echo “Downloading ${MINICONDA_URLBASE}/${MINICONDA_PKG}” -echo “Downloading ${MINICONDA_URLBASE}/${MINICONDA_PKG}” >> ${LOG_FILE} -echo – -${GETFILE} ${MINICONDA_URLBASE}/${MINICONDA_PKG} || do_exit – -echo “Installing the Miniconda python environment.” – -log_cmd bash ./${MINICONDA_PKG} -b -p $DEST_DIR – -# This we <strong>do</strong> need. -export PATH=${DEST_DIR}/bin:$PATH – -echo “Installing the necessary packages for yt.” -echo “This may take a while, but don't worry.  yt loves you.” – -declare -a YT_DEPS -YT_DEPS+=('python') -YT_DEPS+=('setuptools') -YT_DEPS+=('numpy') -YT_DEPS+=('jupyter') -YT_DEPS+=('ipython') -YT_DEPS+=('sphinx') -YT_DEPS+=('h5py') -YT_DEPS+=('matplotlib') -YT_DEPS+=('cython') -YT_DEPS+=('nose') -YT_DEPS+=('conda-build') -YT_DEPS+=('mercurial') -YT_DEPS+=('sympy') – -if [ $INST_UNSTRUCTURED -eq 1 ] -then</p>
<ul><li><p>YT_DEPS+=('netcdf4')</p></li></ul>
<p>-fi – -# Here is our dependency list for yt -log_cmd conda update --yes conda – -log_cmd echo “DEPENDENCIES” ${YT_DEPS[@]} -for YT_DEP in “${YT_DEPS[@]}”; do</p>
<ul><li><p>echo “Installing $YT_DEP”</p></li>
<li><p>log_cmd conda install --yes ${YT_DEP}</p></li></ul>
<p>-done – -if [ $INST_UNSTRUCTURED -eq 1 ] -then –</p>
<ul><li><p>echo “Installing embree”</p></li>
<li><p>mkdir ${DEST_DIR}/src</p></li>
<li><p>cd ${DEST_DIR}/src</p></li>
<li><p>( ${GETFILE} “$EMBREE_URL” 2>&1 ) 1>> ${LOG_FILE} || do_exit</p></li>
<li><p>log_cmd tar xfz ${EMBREE}.tar.gz</p></li>
<li><p>log_cmd mv ${DEST_DIR}/src/${EMBREE}/include/embree2 ${DEST_DIR}/include</p></li>
<li><p>log_cmd mv ${DEST_DIR}/src/${EMBREE}/lib/lib*.* ${DEST_DIR}/lib</p></li>
<li><p>if [ `uname` = “Darwin” ]</p></li>
<li><p>then</p></li>
<li><p>ln -s ${DEST_DIR}/lib/libembree.2.dylib ${DEST_DIR}/lib/libembree.dylib</p></li>
<li><p>install_name_tool -id ${DEST_DIR}/lib/libembree.2.dylib ${DEST_DIR}/lib/libembree.2.dylib</p></li>
<li><p>else</p></li>
<li><p>ln -s ${DEST_DIR}/lib/libembree.so.2 ${DEST_DIR}/lib/libembree.so</p></li>
<li><p>fi</p></li></ul>
<p>–</p>
<ul><li><p>echo “Installing pyembree from source”</p></li>
<li><p>( ${GETFILE} “$PYEMBREE_URL” 2>&1 ) 1>> ${LOG_FILE} || do_exit</p></li>
<li><p>log_cmd unzip ${DEST_DIR}/src/master.zip</p></li>
<li><p>pushd ${DEST_DIR}/src/pyembree-master</p></li>
<li><p>log_cmd python setup.py install build_ext -I${DEST_DIR}/include -L${DEST_DIR}/lib</p></li>
<li><p>popd</p></li></ul>
<p>-fi – -if [ $INST_YT_SOURCE -eq 0 ] -then</p>
<ul><li><p>echo “Installing yt”</p></li>
<li><p>log_cmd conda install --yes yt</p></li></ul>
<p>-else</p>
<ul><li><p># We do a source install.</p></li>
<li><p>echo “Installing yt from source”</p></li>
<li><p>YT_DIR="${DEST_DIR}/src/yt-hg"</p></li>
<li><p>log_cmd hg clone -r ${BRANCH} <a href="https://bitbucket.org/yt_analysis/yt">https://bitbucket.org/yt_analysis/yt</a> ${YT_DIR}</p></li></ul>
<p>-if [ $INST_UNSTRUCTURED -eq 1 ] -then</p>
<ul><li><p>echo $DEST_DIR > ${YT_DIR}/embree.cfg</p></li></ul>
<p>-fi</p>
<ul><li><p>pushd ${YT_DIR}</p></li>
<li><p>log_cmd python setup.py develop</p></li>
<li><p>popd</p></li></ul>
<p>-fi – -echo -echo -echo “========================================================================” -echo -echo “yt and the Conda system are now installed in $DEST_DIR .” -echo -echo “You must now modify your PATH variable by prepending:” -echo -echo "   $DEST_DIR/bin" -echo -echo “On Bash-style shells you can copy/paste the following command to " -echo “temporarily activate the yt installation:” -echo -echo "    export PATH=$DEST_DIR/bin:\$PATH” -echo -echo “and on csh-style shells:” -echo -echo "    setenv PATH $DEST_DIR/bin:\$PATH" -echo -echo “You can also update the init file appropriate for your shell to include” -echo “the same command.” -echo -echo “To get started with yt, check out the orientation:” -echo -echo "    <a href="http://yt-project.org/doc/orientation/">http://yt-project.org/doc/orientation/</a>" -echo -echo “For support, see the website and join the mailing list:” -echo -echo "    <a href="http://yt-project.org/">http://yt-project.org/</a>" -echo "    <a href="http://yt-project.org/data/">http://yt-project.org/data/</a>      (Sample data)" -echo "    <a href="http://yt-project.org/doc/">http://yt-project.org/doc/</a>       (Docs)" -echo -echo "    <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>" -echo -echo “========================================================================” -echo -echo “Oh, look at me, still talking when there's science to do!” -echo “Good luck, and email the user list if you run into any problems.” +echo “This script has been deprecated.” +echo “You can now create a conda-based build using install_script.sh” +echo “Please download that script and run it” +exit 0</p>
<p>This diff is so big that we needed to truncate the remainder.</p>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27BmDCp1MGheWHluAWyqaybeoBNZFhU-2Bu3Nj5EUGJGOByFP75ZUSkIOMQZq7akpXsyuKgI-2BJ9j-2BlaKVW48REthBVJPIPeEweGZnWQUgO3TDvVwzNFp9BTd3Ll2PT9Jh9ujJo2P296Zu59MezjmAPfVJbfDcmbMwhAC44JUqzuNxoZb8wuOM9Ntqs-2BtUMB8IMiHE-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>