aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make/python.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-11-08 19:28:30 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-11-08 19:28:30 +0000
commitcae8be3505acee2f58dea4ff60978aee2f8787ed (patch)
tree1fff85132bded99473b82b6dfbdc0a0ef1e574b0 /reproduce/software/make/python.mk
parent289679bab09b27d0f0d88967a5edc1212e2ea348 (diff)
Matplotlib problem on macOS system with GNU GCC fixed
Until now when building Matplotlib on macOS systems, we were using the default C compiler. However, while Yahya Sefidbakht (previously) and Mahdieh Nabavi (now) were trying to build the template, on their macOS using the GNU Compiler Collection (GCC), we found that Matplotlib needs special macOS headers that GCC doesn't recognize. With this commit, when Matplotlib is being built on macOS systems, it uses `clang' and this fixed the problem (so far checked on Mahdieh's machine).
Diffstat (limited to 'reproduce/software/make/python.mk')
-rw-r--r--reproduce/software/make/python.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/reproduce/software/make/python.mk b/reproduce/software/make/python.mk
index dfa65b5..47d78d5 100644
--- a/reproduce/software/make/python.mk
+++ b/reproduce/software/make/python.mk
@@ -554,6 +554,12 @@ $(ipydir)/matplotlib: $(ipydir)/numpy \
$(ibidir)/imagemagick \
$(ipydir)/python-dateutil \
| $(tdir)/matplotlib-$(matplotlib-version).tar.gz
+ # On Mac systems, the build complains about `clang' specific
+ # features, so we can't use our own GCC build here.
+ if [ x$(on_mac_os) = xyes ]; then \
+ export CC=clang; \
+ export CXX=clang++; \
+ fi; \
$(call pybuild, tar xf, matplotlib-$(matplotlib-version)) \
&& cp $(dtexdir)/matplotlib.tex $(ictdir)/ \
&& echo "Matplotlib $(matplotlib-version) \citep{matplotlib2007}" > $@