<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9571de45354758ce3727e8eb379320ad4291f2d4">https://github.com/macports/macports-ports/commit/9571de45354758ce3727e8eb379320ad4291f2d4</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9571de45354758ce3727e8eb379320ad4291f2d4
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Aug 18 13:50:29 2018 -0700

<span style='display:block; white-space:pre;color:#404040;'>    py-fiat: allow use with latest py-sympy
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    See https://bitbucket.org/fenics-project/fiat/commits/8ceb29a3b9b14668b9d387321a3f8f4126f9a159
</span>---
 python/py-fiat/Portfile               |  4 ++++
 python/py-fiat/files/patch-sympy.diff | 11 +++++++++++
 2 files changed, 15 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-fiat/Portfile b/python/py-fiat/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c03cdc9..74c3782 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-fiat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-fiat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup           python 1.0
</span> PortGroup           bitbucket 1.0
 
 bitbucket.setup     fenics-project fiat 2017.2.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> name                py-fiat
 
 categories-append   math science
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,5 +35,8 @@ if {${subport} ne ${name}} {
</span>     depends_lib     port:py${python.version}-numpy \
                     port:py${python.version}-sympy
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # see https://bitbucket.org/fenics-project/fiat/commits/8ceb29a3b9b14668b9d387321a3f8f4126f9a159
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append   patch-sympy.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     livecheck.type  none
 }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-fiat/files/patch-sympy.diff b/python/py-fiat/files/patch-sympy.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..99df0d2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-fiat/files/patch-sympy.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- FIAT/expansions.py.orig        2018-06-14 04:30:19.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ FIAT/expansions.py     2018-08-18 10:49:46.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -48,7 +48,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         out = []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         try:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             out = [sympy.diff(F, X[j]) for j in range(D)]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        except AttributeError:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        except (AttributeError, ValueError):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             # Intercept errors like
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             #  AttributeError: 'list' object has no attribute
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             #  'free_symbols'
</span></pre><pre style='margin:0'>

</pre>