pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] fixup for py-boost (numpy dep for both python2 and python3)



Hi,

here is an excerpt of my local hacks to get a tree of software
installed from pkgsrc-2017Q1. The reproducability and versioning of the
tree is important to me, so please excuse me for not working directly
off CVS trunk, instead patching up the stable releases … anyhow: There
is a partial fix for devel/py-boost in trunk thanks for nbjoerg, but it
is missing bits to make it work both with python2 and python3. Attached
is my full patch on top of 2017Q1.

The rationale is that py-boost depends on py-numpy (if it is installed
…) and the build is broken unless we deal with that in pkgsrc.

I have further patches in the pipeline, namely putting more openblas
into packages (R, numpy) and of course the local changes that you might
not want (for hacking my external toolchain and MPI lib reliably into
pkgsrc). I will post more patches once I got my installation done.
Currently I am hoping that octave works out at all (lots of deps) and
then will see to make it use openblas, too. Maybe openblas itself might
be moved into main pkgsrc, once it is used by several other packages. A
7-fold performance boost on matrix stuff in R is welcome, at least
around here;-)


Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
Universität Hamburg
RRZ / Basis-Infrastruktur / HPC
Schlüterstr. 70
20146 Hamburg
Tel.: 040/42838 8826
Fax: 040/428 38 6270
diff -x CVS -ruN pkgsrc-2017Q1/devel/py-boost/Makefile pkgsrc/devel/py-boost/Makefile
--- pkgsrc-2017Q1/devel/py-boost/Makefile	2017-01-03 14:23:01.000000000 +0100
+++ pkgsrc/devel/py-boost/Makefile	2017-04-13 15:19:02.693838593 +0200
@@ -33,4 +33,5 @@
 	${RM} -f ${DESTDIR}${PREFIX}/lib/libboost_python.*
 .endif
 
+.include "../../math/py-numpy/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -x CVS -ruN pkgsrc-2017Q1/devel/py-boost/PLIST pkgsrc/devel/py-boost/PLIST
--- pkgsrc-2017Q1/devel/py-boost/PLIST	2016-02-27 21:55:05.000000000 +0100
+++ pkgsrc/devel/py-boost/PLIST	2017-04-13 15:42:52.585819577 +0200
@@ -1,4 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2016/02/27 20:55:05 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/04/10 11:35:40 joerg Exp $
+${PLIST.py2x}lib/libboost_numpy.a
+${PLIST.py2x}lib/libboost_numpy.so
+${PLIST.py2x}lib/libboost_numpy.so.${BOOST_VERSION}
+${PLIST.py3x}lib/libboost_numpy3.a
+${PLIST.py3x}lib/libboost_numpy3.so
+${PLIST.py3x}lib/libboost_numpy3.so.${BOOST_VERSION}
 ${PLIST.py2x}lib/libboost_python.a
 ${PLIST.py2x}lib/libboost_python.so
 ${PLIST.py2x}lib/libboost_python.so.${BOOST_VERSION}

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index