aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make
diff options
context:
space:
mode:
authorRaul Infante-Sainz <infantesainz@gmail.com>2019-02-07 22:14:20 +0000
committerRaul Infante-Sainz <infantesainz@gmail.com>2019-02-07 22:14:20 +0000
commitea525171de968707d15afd9dd9da760083722e2a (patch)
tree0cbd0c7ec9c060d2fc5ff561e59b2d39e99134f9 /reproduce/src/make
parent71f105dcdc7880919612a3adbe4f99d1706f5ec1 (diff)
Numpy is now in the pipeline
Python needs some packages to be really useful. Numpy is the most important package for using Python and a lot of other packages depend on it. In this commit we add numpy to the pipeline. The tarball of numpy right now is fossies.
Diffstat (limited to 'reproduce/src/make')
-rw-r--r--reproduce/src/make/dependencies.mk23
1 files changed, 20 insertions, 3 deletions
diff --git a/reproduce/src/make/dependencies.mk b/reproduce/src/make/dependencies.mk
index 101002c..52b65f4 100644
--- a/reproduce/src/make/dependencies.mk
+++ b/reproduce/src/make/dependencies.mk
@@ -41,10 +41,13 @@ idir = $(BDIR)/dependencies/installed
ibdir = $(BDIR)/dependencies/installed/bin
ildir = $(BDIR)/dependencies/installed/lib
ilidir = $(BDIR)/dependencies/installed/lib/built
+pydir = $(BDIR)/dependencies/installed/lib/python
# Define the top-level programs to build (installed in `.local/bin').
-top-level-programs = astnoisechisel metastore flock python3 unzip zip
-all: $(ddir)/texlive-versions.tex \
+top-level-python = numpy
+top-level-programs = astnoisechisel metastore flock zip
+all: $(ddir)/texlive-versions.tex \
+ $(foreach p, $(top-level-python), $(pydir)/$(p)) \
$(foreach p, $(top-level-programs), $(ibdir)/$(p))
# Other basic environment settings: We are only including the host
@@ -101,6 +104,7 @@ tarballs = $(foreach t, cfitsio-$(cfitsio-version).tar.gz \
libtool-$(libtool-version).tar.xz \
libgit2-$(libgit2-version).tar.gz \
metastore-$(metastore-version).tar.gz \
+ numpy-$(numpy-version).zip \
python-$(python-version).tar.gz \
unzip-$(unzip-version).tar.gz \
tiff-$(libtiff-version).tar.gz \
@@ -142,6 +146,7 @@ $(tarballs): $(tdir)/%:
mergenames=0
w=https://github.com/libgit2/libgit2/archive/v$(libgit2-version).tar.gz
elif [ $$n = metastore ]; then w=http://akhlaghi.org/src
+ elif [ $$n = numpy ]; then w=https://fossies.org/linux/misc
elif [ $$n = python ]; then
mergenames=0
w=https://www.python.org/ftp/python/$(python-version)/Python-$(python-version).tgz
@@ -451,7 +456,10 @@ endif
make check -j$(numthreads))
$(ibdir)/python3: $(tdir)/python-$(python-version).tar.gz
- $(call gbuild, $<, python-$(python-version))
+ $(call gbuild, $<, python-$(python-version)) \
+ && v=$$(echo $(python-version) | awk 'BEGIN{FS="."} \
+ {printf "%d.%d\n", $$1, $$2}') \
+ && ln -s $(ildir)/python$$v $(ildir)/python
$(ibdir)/unzip: $(tdir)/unzip-$(unzip-version).tar.gz
v=$$(echo $(unzip-version) | sed -e's/\.//')
@@ -473,6 +481,15 @@ $(ibdir)/zip: $(tdir)/zip-$(zip-version).tar.gz
+# Python packages
+# ---------------
+$(pydir)/numpy: $(tdir)/numpy-$(numpy-version).zip \
+ $(ibdir)/python3 \
+ $(ibdir)/unzip
+ pip3 install $< --verbose
+
+
+
# Since we want to avoid complicating the PATH, we are putting a symbolic
# link of all the TeX Live executables in $(ibdir). But symbolic links are
# hard to track for Make (as a target). Also, TeX in general is optional