aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/initialize.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-03-06 21:15:34 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-03-06 21:15:34 +0000
commite62b9952d98035d3664538decc458a62fe07f6a2 (patch)
tree503cb5b371d079175e53d18e8fc033e6ee37956c /reproduce/src/make/initialize.mk
parent2782b63c8d05591037e5099c601c370916bb7f66 (diff)
Reseting Python environment variables also when building Python
Until now, we were only resetting the Python environment variables in the actual processing Makefiles, not in the Makefile that build Python and its modules. They are now added there also.
Diffstat (limited to 'reproduce/src/make/initialize.mk')
-rw-r--r--reproduce/src/make/initialize.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/reproduce/src/make/initialize.mk b/reproduce/src/make/initialize.mk
index 638338b..47bf3c7 100644
--- a/reproduce/src/make/initialize.mk
+++ b/reproduce/src/make/initialize.mk
@@ -116,10 +116,17 @@ export LDFLAGS := -L$(installdir)/lib
export SHELL := $(installdir)/bin/bash
export CPPFLAGS := -I$(installdir)/include
+
+
+
+
# Python enviroment
-# So far we have found several other Python-related environment
-# variables which might interfere. So we are just removing all
-# of their values within the pipeline.
+# -----------------
+#
+# The main Python environment variable is `PYTHONPATH'. However, so far we
+# have found several other Python-related environment variables on some
+# systems which might interfere. To be safe, we are removing all their
+# values.
export PYTHONPATH := $(installdir)/lib/python/site-packages
export PYTHONPATH3 := $(PYTHONPATH)
export _LMFILES_ :=
@@ -426,7 +433,7 @@ $(mtexdir)/initialize.tex: | $(mtexdir)
# TeX package versions
cat $(BDIR)/dependencies/texlive-versions.tex >> $@
- # Python packages
+ # Python packages
$(call pvcheck, python3, $(python-version), Python, pythonversion)
echo "\newcommand{\\numpyversion}{$(numpy-version)}" >> $@
echo "\newcommand{\\astropyversion}{$(astropy-version)}" >> $@