<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/be993079427c/">https://bitbucket.org/yt_analysis/yt/commits/be993079427c/</a> Changeset:   be993079427c Branch:      yt User:        atmyers Date:        2016-03-27 21:47:01+00:00 Summary:     Merged in atmyers/yt (pull request #2057)</p>
<p>Improve the unstructured mesh rendering build process. Affected #:  2 files</p>
<p>diff -r 5a08905d2e438f08244ca4819d523f62dfc4e86d -r be993079427c300e09b4b6430e3c8d90af0c3500 doc/source/visualizing/unstructured_mesh_rendering.rst --- a/doc/source/visualizing/unstructured_mesh_rendering.rst +++ b/doc/source/visualizing/unstructured_mesh_rendering.rst @@ -14,7 +14,7 @@</p>
<pre>.. code-block:: bash
</pre>
<ul><li><p>conda install -c <a href="http://use.yt/with_conda/">http://use.yt/with_conda/</a> yt=3.3_dev</p></li></ul>
<p>+    conda install -c <a href="http://use.yt/with_conda/">http://use.yt/with_conda/</a> yt</p>
<pre>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</pre>
<p>@@ -73,7 +73,13 @@</p>
<pre>as usual. Finally, if you create a file called embree.cfg in the yt-hg directory with
the location of the embree installation, the setup script will find this and use it,</pre>
<p>-provided EMBREE_DIR is not set. We recommend one of the later two methods, especially +provided EMBREE_DIR is not set. An example embree.cfg file could like this: + +.. code-block:: bash + +   /opt/local/ + +We recommend one of the later two methods, especially</p>
<pre>if you plan on re-compiling the cython extensions regularly. Note that none of this is
neccessary if you installed embree into a location that is in your default path, such
as /usr/local.</pre>
<p>diff -r 5a08905d2e438f08244ca4819d523f62dfc4e86d -r be993079427c300e09b4b6430e3c8d90af0c3500 setupext.py --- a/setupext.py +++ b/setupext.py @@ -76,17 +76,58 @@</p>
<pre>    '''

    rd = os.environ.get('EMBREE_DIR')</pre>
<ul><li><p>if rd is not None:</p></li>
<li><p>return rd</p></li>
<li><p>print("EMBREE_DIR not set. Attempting to read embree.cfg")</p></li></ul>
<p>+    if rd is None: +        try: +            rd = open("embree.cfg").read().strip() +        except IOError: +            rd = ‘/usr/local’ + +    fail_msg = ("Pyembree is installed, but I could not compile Embree test code. \n" +               “I attempted to find Embree headers in %s. \n” +               “If this is not correct, please set your correct embree location \n” +               “using EMBREE_DIR environment variable or your embree.cfg file. \n” +               "Please see <a href="http://yt-project.org/docs/dev/visualizing/unstructured_mesh_rendering.html">http://yt-project.org/docs/dev/visualizing/unstructured_mesh_rendering.html</a> " +                “for more information.” % rd) + +    # Create a temporary directory +    tmpdir = tempfile.mkdtemp() +    curdir = os.getcwd() +</p>
<pre>try:</pre>
<ul><li><p>rd = open("embree.cfg").read().strip()</p></li>
<li><p>return rd</p></li>
<li><p>except IOError:</p></li>
<li><p>print("Reading Embree location from embree.cfg failed.")</p></li>
<li><p>print("If compilation fails, please place the base directory")</p></li>
<li><p>print("of your Embree install in embree.cfg and restart.")</p></li>
<li><p>return ‘/usr/local’</p></li></ul>
<p>+        os.chdir(tmpdir) + +        # Get compiler invocation +        compiler = os.getenv('CXX', ‘c++’) +        compiler = compiler.split(' ‘) + +        # Attempt to compile a test script. +        filename = r'test.cpp’ +        file = open(filename, ‘wt’, 1) +        file.write( +            ‘#include "embree2/rtcore.h"\n’ +            ‘int main() {\n’ +            ‘return 0;\n’ +            ‘}’ +        ) +        file.flush() +        with open(os.devnull, ‘w’) as fnull: +            exit_code = subprocess.call(compiler + ['-I%s/include/' % rd, filename], +                             stdout=fnull, stderr=fnull) + +        # Clean up +        file.close() + +    except OSError: +        print(fail_msg) + +    finally: +        os.chdir(curdir) +        shutil.rmtree(tmpdir) + +    if exit_code != 0: +        print(fail_msg) + +    return rd</p>
<pre>def get_mercurial_changeset_id(target_dir):</pre>
<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-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27A5lr49MRgTf7XwT1AYMtNL29E-2BG7mNvmxS25usjW-2BMKE4-2FpxWCyHqrCyoOPDB26-2FlgLpSuFjaXryUKyOdb8hyjQa0P5jbiDgh-2Bqs7WU8MGGrrCW-2BJSXVc3oiUtTd4kJSRx1Q3W8amkM51t5HxB7Fq0zC7v7stbyE42gTpYoFd-2F6nfP95YTX2NOclSuHZB3q1w-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>