[yt-svn] commit/yt: 6 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jan 27 09:39:27 PST 2016
6 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/5d6c957a90fa/
Changeset: 5d6c957a90fa
Branch: yt
User: atmyers
Date: 2016-01-16 02:21:00+00:00
Summary: Adding optional unstructured mesh flag to the get_yt.sh script.
Affected #: 1 file
diff -r 8717f785d8fd0da987e2a881918748a105b6f8f3 -r 5d6c957a90fa4660c912504f213386551e4bdea0 doc/get_yt.sh
--- a/doc/get_yt.sh
+++ b/doc/get_yt.sh
@@ -23,7 +23,8 @@
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=0 # Do we do a source install of yt?
+INST_YT_SOURCE=1 # Do we do a source install of yt?
+INST_UNSTRUCTURED=1 # Do we want to build with unstructured mesh support?
##################################################################
# #
@@ -40,6 +41,25 @@
MINICONDA_VERSION="latest"
YT_RECIPE_REPO="https://bitbucket.org/yt_analysis/yt_conda/raw/default"
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+ if [ $INST_YT_SOURCE -eq 0 ]
+ then
+ echo "yt must be compiled from source to use the unstructured mesh support."
+ echo "Please set INST_YT_SOURCE to 1 and re-run."
+ exit 1
+ fi
+ if [ `uname` = "Darwin" ]
+ then
+ EMBREE="embree-2.8.0.x86_64.macosx"
+ EMBREE_URL="https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz"
+ else
+ EMBREE="embree-2.8.0.x86_64.linux"
+ EMBREE_URL="https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz"
+ fi
+ PYEMBREE_URL="https://github.com/scopatz/pyembree/archive/master.zip"
+fi
+
function do_exit
{
echo "********************************************"
@@ -276,6 +296,11 @@
YT_DEPS+=('mercurial')
YT_DEPS+=('sympy')
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+ YT_DEPS+=('netcdf4')
+fi
+
# Here is our dependency list for yt
log_cmd conda update --yes conda
@@ -299,6 +324,37 @@
popd
fi
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+
+ echo "Installing embree"
+ cd ${DEST_DIR}/src
+ ( ${GETFILE} "$EMBREE_URL" 2>&1 ) 1>> ${LOG_FILE} || do_exit
+ log_cmd tar xfz ${EMBREE}.tar.gz
+ log_cmd mv ${DEST_DIR}/src/${EMBREE}/include/embree2 ${DEST_DIR}/include
+ log_cmd mv ${DEST_DIR}/src/${EMBREE}/lib/lib*.* ${DEST_DIR}/lib
+ if [ `uname` = "Darwin" ]
+ then
+ ln -s ${DEST_DIR}/lib/libembree.2.dylib ${DEST_DIR}/lib/libembree.dylib
+ install_name_tool -id ${DEST_DIR}/lib/libembree.2.dylib ${DEST_DIR}/lib/libembree.2.dylib
+ else
+ ln -s ${DEST_DIR}/lib/libembree.so.2 ${DEST_DIR}/lib/libembree.so
+ fi
+
+ echo "Installing pyembree from source"
+ ( ${GETFILE} "$PYEMBREE_URL" 2>&1 ) 1>> ${LOG_FILE} || do_exit
+ log_cmd unzip ${DEST_DIR}/src/master.zip
+ pushd ${DEST_DIR}/src/pyembree-master
+ log_cmd python setup.py install build_ext -I${DEST_DIR}/include -L${DEST_DIR}/lib
+ popd
+
+ YT_DIR="${DEST_DIR}/src/yt-hg"
+ echo $DEST_DIR > ${YT_DIR}/embree.cfg
+ pushd ${YT_DIR}
+ log_cmd python setup.py develop
+ popd
+fi
+
echo
echo
echo "========================================================================"
@@ -310,7 +366,7 @@
echo " $DEST_DIR/bin"
echo
echo "On Bash-style shells you can copy/paste the following command to "
-echo "temporarily activate the yt installtion:"
+echo "temporarily activate the yt installation:"
echo
echo " export PATH=$DEST_DIR/bin:\$PATH"
echo
https://bitbucket.org/yt_analysis/yt/commits/535ffb886188/
Changeset: 535ffb886188
Branch: yt
User: atmyers
Date: 2016-01-16 02:24:36+00:00
Summary: turn off by default
Affected #: 1 file
diff -r 5d6c957a90fa4660c912504f213386551e4bdea0 -r 535ffb886188f5af28d96caa47f3cca43b3228de doc/get_yt.sh
--- a/doc/get_yt.sh
+++ b/doc/get_yt.sh
@@ -23,8 +23,8 @@
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?
+INST_YT_SOURCE=0 # Do we do a source install of yt?
+INST_UNSTRUCTURED=0 # Do we want to build with unstructured mesh support?
##################################################################
# #
https://bitbucket.org/yt_analysis/yt/commits/5199ae2a621a/
Changeset: 5199ae2a621a
Branch: yt
User: atmyers
Date: 2016-01-21 22:35:43+00:00
Summary: don't run setup.py for yt twice in the get_yt.sh script
Affected #: 1 file
diff -r 535ffb886188f5af28d96caa47f3cca43b3228de -r 5199ae2a621a5da566389185d9aa2323cf110764 doc/get_yt.sh
--- a/doc/get_yt.sh
+++ b/doc/get_yt.sh
@@ -23,8 +23,8 @@
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=0 # Do we do a source install of yt?
-INST_UNSTRUCTURED=0 # Do we want to build with unstructured mesh support?
+INST_YT_SOURCE=1 # Do we do a source install of yt?
+INST_UNSTRUCTURED=1 # Do we want to build with unstructured mesh support?
##################################################################
# #
@@ -310,24 +310,11 @@
log_cmd conda install --yes ${YT_DEP}
done
-if [ $INST_YT_SOURCE -eq 0 ]
-then
- echo "Installing yt"
- log_cmd conda install --yes yt
-else
- # We do a source install.
- echo "Installing yt from source"
- YT_DIR="${DEST_DIR}/src/yt-hg"
- log_cmd hg clone -r ${BRANCH} https://bitbucket.org/yt_analysis/yt ${YT_DIR}
- pushd ${YT_DIR}
- log_cmd python setup.py develop
- popd
-fi
-
if [ $INST_UNSTRUCTURED -eq 1 ]
then
echo "Installing embree"
+ mkdir ${DEST_DIR}/src
cd ${DEST_DIR}/src
( ${GETFILE} "$EMBREE_URL" 2>&1 ) 1>> ${LOG_FILE} || do_exit
log_cmd tar xfz ${EMBREE}.tar.gz
@@ -347,12 +334,24 @@
pushd ${DEST_DIR}/src/pyembree-master
log_cmd python setup.py install build_ext -I${DEST_DIR}/include -L${DEST_DIR}/lib
popd
+fi
- YT_DIR="${DEST_DIR}/src/yt-hg"
- echo $DEST_DIR > ${YT_DIR}/embree.cfg
- pushd ${YT_DIR}
- log_cmd python setup.py develop
- popd
+if [ $INST_YT_SOURCE -eq 0 ]
+then
+ echo "Installing yt"
+ log_cmd conda install --yes yt
+else
+ # We do a source install.
+ echo "Installing yt from source"
+ YT_DIR="${DEST_DIR}/src/yt-hg"
+ log_cmd hg clone -r ${BRANCH} https://bitbucket.org/yt_analysis/yt ${YT_DIR}
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+ echo $DEST_DIR > ${YT_DIR}/embree.cfg
+fi
+ pushd ${YT_DIR}
+ log_cmd python setup.py develop
+ popd
fi
echo
https://bitbucket.org/yt_analysis/yt/commits/fa6ca4d026e7/
Changeset: fa6ca4d026e7
Branch: yt
User: atmyers
Date: 2016-01-22 00:17:36+00:00
Summary: describe the get_yt.sh option in the unstructured mesh rendering docs
Affected #: 1 file
diff -r 5199ae2a621a5da566389185d9aa2323cf110764 -r fa6ca4d026e7ce462dd6e24f7aa011cc81c485da doc/source/visualizing/unstructured_mesh_rendering.rst
--- a/doc/source/visualizing/unstructured_mesh_rendering.rst
+++ b/doc/source/visualizing/unstructured_mesh_rendering.rst
@@ -8,8 +8,24 @@
Beginning with version 3.3, yt has the ability to volume render unstructured
mesh data - like that created by finite element calculations, for example.
-In order to use this capability, a few additional dependencies are required
-beyond those you get when you run the install script. First, `embree <https://embree.github.io>`_
+In order to use this capability, a few additional dependencies are required.
+The easiest way to get yt with unstructured mesh support is to use the
+``get_yt.sh`` script, which will install the additional dependencies for you
+if you set the INST_YT_SOURCE and INST_UNSTRUCTURED flags to 1 at the top of
+the script. The ``get_yt.sh`` script can be downloaded by doing:
+
+.. code-block:: bash
+
+ wget http://bitbucket.org/yt_analysis/yt/raw/yt/doc/get_yt.sh
+
+and then run like so:
+
+.. code-block:: bash
+
+ bash get_yt.sh
+
+Alternatively, you can install the additional dependencies by hand.
+First, `embree <https://embree.github.io>`_
(a fast software ray-tracing library from Intel) must be installed, either
by compiling from source or by using one of the pre-built binaries available
at Embree's `downloads <https://embree.github.io/downloads.html>`_ page.
https://bitbucket.org/yt_analysis/yt/commits/218ba11fbcb5/
Changeset: 218ba11fbcb5
Branch: yt
User: atmyers
Date: 2016-01-23 08:04:31+00:00
Summary: mention the conda dev builds in the unstructured mesh visualization docs
Affected #: 1 file
diff -r fa6ca4d026e7ce462dd6e24f7aa011cc81c485da -r 218ba11fbcb5fa93921f021a3d81a3c41c21ac38 doc/source/visualizing/unstructured_mesh_rendering.rst
--- a/doc/source/visualizing/unstructured_mesh_rendering.rst
+++ b/doc/source/visualizing/unstructured_mesh_rendering.rst
@@ -7,12 +7,18 @@
^^^^^^^^^^^^
Beginning with version 3.3, yt has the ability to volume render unstructured
-mesh data - like that created by finite element calculations, for example.
-In order to use this capability, a few additional dependencies are required.
-The easiest way to get yt with unstructured mesh support is to use the
-``get_yt.sh`` script, which will install the additional dependencies for you
-if you set the INST_YT_SOURCE and INST_UNSTRUCTURED flags to 1 at the top of
-the script. The ``get_yt.sh`` script can be downloaded by doing:
+mesh data like that created by finite element calculations. In order to use
+this capability, a few additional dependencies are required. The easiest way
+to install yt with unstructured mesh support is to use conda to install the
+most recent development version of yt from our channel:
+
+.. code-block:: bash
+
+ conda install -c http://use.yt/with_conda/ yt
+
+If you want to install from source, you can use the ``get_yt.sh`` script.
+Be sure to set the INST_YT_SOURCE and INST_UNSTRUCTURED flags to 1 at the
+top of the script. The ``get_yt.sh`` script can be downloaded by doing:
.. code-block:: bash
https://bitbucket.org/yt_analysis/yt/commits/c20ca31d9d7c/
Changeset: c20ca31d9d7c
Branch: yt
User: brittonsmith
Date: 2016-01-27 17:39:16+00:00
Summary: Merged in atmyers/yt (pull request #1944)
Adding optional unstructured mesh flag to the get_yt.sh script
Affected #: 2 files
diff -r f6d9b67a3e76eda32543a159c544c919d5e5895a -r c20ca31d9d7c34e66ab9ae02f3868af0fd08ba7f doc/get_yt.sh
--- a/doc/get_yt.sh
+++ b/doc/get_yt.sh
@@ -23,7 +23,8 @@
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=0 # Do we do a source install of yt?
+INST_YT_SOURCE=1 # Do we do a source install of yt?
+INST_UNSTRUCTURED=1 # Do we want to build with unstructured mesh support?
##################################################################
# #
@@ -40,6 +41,25 @@
MINICONDA_VERSION="latest"
YT_RECIPE_REPO="https://bitbucket.org/yt_analysis/yt_conda/raw/default"
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+ if [ $INST_YT_SOURCE -eq 0 ]
+ then
+ echo "yt must be compiled from source to use the unstructured mesh support."
+ echo "Please set INST_YT_SOURCE to 1 and re-run."
+ exit 1
+ fi
+ if [ `uname` = "Darwin" ]
+ then
+ EMBREE="embree-2.8.0.x86_64.macosx"
+ EMBREE_URL="https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz"
+ else
+ EMBREE="embree-2.8.0.x86_64.linux"
+ EMBREE_URL="https://github.com/embree/embree/releases/download/v2.8.0/$EMBREE.tar.gz"
+ fi
+ PYEMBREE_URL="https://github.com/scopatz/pyembree/archive/master.zip"
+fi
+
function do_exit
{
echo "********************************************"
@@ -276,6 +296,11 @@
YT_DEPS+=('mercurial')
YT_DEPS+=('sympy')
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+ YT_DEPS+=('netcdf4')
+fi
+
# Here is our dependency list for yt
log_cmd conda update --yes conda
@@ -285,6 +310,32 @@
log_cmd conda install --yes ${YT_DEP}
done
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+
+ echo "Installing embree"
+ mkdir ${DEST_DIR}/src
+ cd ${DEST_DIR}/src
+ ( ${GETFILE} "$EMBREE_URL" 2>&1 ) 1>> ${LOG_FILE} || do_exit
+ log_cmd tar xfz ${EMBREE}.tar.gz
+ log_cmd mv ${DEST_DIR}/src/${EMBREE}/include/embree2 ${DEST_DIR}/include
+ log_cmd mv ${DEST_DIR}/src/${EMBREE}/lib/lib*.* ${DEST_DIR}/lib
+ if [ `uname` = "Darwin" ]
+ then
+ ln -s ${DEST_DIR}/lib/libembree.2.dylib ${DEST_DIR}/lib/libembree.dylib
+ install_name_tool -id ${DEST_DIR}/lib/libembree.2.dylib ${DEST_DIR}/lib/libembree.2.dylib
+ else
+ ln -s ${DEST_DIR}/lib/libembree.so.2 ${DEST_DIR}/lib/libembree.so
+ fi
+
+ echo "Installing pyembree from source"
+ ( ${GETFILE} "$PYEMBREE_URL" 2>&1 ) 1>> ${LOG_FILE} || do_exit
+ log_cmd unzip ${DEST_DIR}/src/master.zip
+ pushd ${DEST_DIR}/src/pyembree-master
+ log_cmd python setup.py install build_ext -I${DEST_DIR}/include -L${DEST_DIR}/lib
+ popd
+fi
+
if [ $INST_YT_SOURCE -eq 0 ]
then
echo "Installing yt"
@@ -294,6 +345,10 @@
echo "Installing yt from source"
YT_DIR="${DEST_DIR}/src/yt-hg"
log_cmd hg clone -r ${BRANCH} https://bitbucket.org/yt_analysis/yt ${YT_DIR}
+if [ $INST_UNSTRUCTURED -eq 1 ]
+then
+ echo $DEST_DIR > ${YT_DIR}/embree.cfg
+fi
pushd ${YT_DIR}
log_cmd python setup.py develop
popd
@@ -310,7 +365,7 @@
echo " $DEST_DIR/bin"
echo
echo "On Bash-style shells you can copy/paste the following command to "
-echo "temporarily activate the yt installtion:"
+echo "temporarily activate the yt installation:"
echo
echo " export PATH=$DEST_DIR/bin:\$PATH"
echo
diff -r f6d9b67a3e76eda32543a159c544c919d5e5895a -r c20ca31d9d7c34e66ab9ae02f3868af0fd08ba7f doc/source/visualizing/unstructured_mesh_rendering.rst
--- a/doc/source/visualizing/unstructured_mesh_rendering.rst
+++ b/doc/source/visualizing/unstructured_mesh_rendering.rst
@@ -7,9 +7,31 @@
^^^^^^^^^^^^
Beginning with version 3.3, yt has the ability to volume render unstructured
-mesh data - like that created by finite element calculations, for example.
-In order to use this capability, a few additional dependencies are required
-beyond those you get when you run the install script. First, `embree <https://embree.github.io>`_
+mesh data like that created by finite element calculations. In order to use
+this capability, a few additional dependencies are required. The easiest way
+to install yt with unstructured mesh support is to use conda to install the
+most recent development version of yt from our channel:
+
+.. code-block:: bash
+
+ conda install -c http://use.yt/with_conda/ yt
+
+If you want to install from source, you can use the ``get_yt.sh`` script.
+Be sure to set the INST_YT_SOURCE and INST_UNSTRUCTURED flags to 1 at the
+top of the script. The ``get_yt.sh`` script can be downloaded by doing:
+
+.. code-block:: bash
+
+ wget http://bitbucket.org/yt_analysis/yt/raw/yt/doc/get_yt.sh
+
+and then run like so:
+
+.. code-block:: bash
+
+ bash get_yt.sh
+
+Alternatively, you can install the additional dependencies by hand.
+First, `embree <https://embree.github.io>`_
(a fast software ray-tracing library from Intel) must be installed, either
by compiling from source or by using one of the pre-built binaries available
at Embree's `downloads <https://embree.github.io/downloads.html>`_ page.
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