Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/files/, dev-python/numpy/
Date: Wed, 16 Dec 2015 08:49:20
Message-Id: 1450255752.e5ce90a04e79f6413604e96e4803cb95ada7c859.jlec@gentoo
1 commit: e5ce90a04e79f6413604e96e4803cb95ada7c859
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 16 08:48:45 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 16 08:49:12 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5ce90a0
7
8 dev-python/numpy: Fix linking to cblas and update docs
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567938
11
12 Package-Manager: portage-2.2.26
13 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
14
15 dev-python/numpy/Manifest | 3 +
16 .../files/numpy-1.10.2-no-hardcode-blas.patch | 64 ++++++++++++++++++++++
17 .../numpy/files/numpy-1.9.2-no-hardcode-blas.patch | 37 +++++++++++--
18 ...{numpy-1.10.2.ebuild => numpy-1.10.2-r1.ebuild} | 10 +---
19 4 files changed, 103 insertions(+), 11 deletions(-)
20
21 diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest
22 index 2ec2993..b3a1d88 100644
23 --- a/dev-python/numpy/Manifest
24 +++ b/dev-python/numpy/Manifest
25 @@ -3,9 +3,12 @@ DIST numpy-1.10.2.tar.gz 4055005 SHA256 23a3befdf955db4d616f8bb77b324680a80a323e
26 DIST numpy-1.8.2.tar.gz 3792998 SHA256 6d487fc724780d66746bde264ea71f5cd77d3a39e52ee2b073dcaed63bc669db SHA512 996e6b8e2d42f223e44660f56bf73eb8ab124f400d89218f8f5e4d7c9860ada44a4d7c54526137b0695c7a10f36e8834fbf0d42b7cb20bcdb5d5c245d673385c WHIRLPOOL 0d3a05b1e3c0a1ceb0a7b4818406dbb45506e5f25bc2727d4ff44cc0a0520e6556b3c68ae24dbca37ba9d67ae2defbb3ff9c906d4c2635b29ed44452d70e8311
27 DIST numpy-1.9.2.tar.gz 3986067 SHA256 325e5f2b0b434ecb6e6882c7e1034cc6cdde3eeeea87dbc482575199a6aeef2a SHA512 70470ebb9afef5dfd0c83ceb7a9d5f1b7a072b1a9b54b04f04f5ed50fbaedd5b4906bd500472268d478f94df9e749a88698b1ff30f2d80258e7f3fec040617d9 WHIRLPOOL 59f5dc52cb95c7ce80fec3a7feac6cfda1d149596bf6d95c18bd8314e31a8df494b2b470c4cc3d8c296c9fc11c718d70d5b9b5344337175ca75496504c0fd201
28 DIST numpy-1.9.3.tar.gz 3984430 SHA256 c3b74d3b9da4ceb11f66abd21e117da8cf584b63a0efbd01a9b7e91b693fbbd6 SHA512 32531cd8d1480a50812454ef8e3b68c0f84b2a4bc5de0df1457070db7f6fd94cdb50e6479a85fa4d1dc569a10d28f6864d5069fcf2a32fa20fa8803476a3df8c WHIRLPOOL a0235594e793625d5e3cef57956f4710587158885f39d7d1267c9845b12fb1d39fb9987ec095720c2d285c7c726383a15471f3629b739b77186470e2c40ba093
29 +DIST numpy-html-1.10.1.zip 9663942 SHA256 4af48eb5abf2551f01d85aea7e9a99a30096777f02937dc185b16bb72a110366 SHA512 9d1f3619b801c88604a0495290da4ae8cfb4800257d549214363c554c1dc09a736425d594ed88f492afee6ae7c68fe5c166b9b3a8f24637ea41d67fd23b9d9f9 WHIRLPOOL d6c93e31e31c832fb21f117d03719e0375ee3d27fb6f7975bfcd12469df4a2ed0a25a16bd09a0e2113407446efc220e5bff534f7cd76a715c3d7df26c02f07a1
30 DIST numpy-html-1.8.1.zip 9703711 SHA256 f7fc3af4dba7b40deabd1828a86ea2e2eb5b9fa17c7ebddd73ee4cb8625105b1 SHA512 1d52c657931f4eebb5325159444aedd969b201f5098855058f1ef632dc8677372d632291154ebc3db9869cdb8abf7eb820eade1a9edba2d6be1ae918cb38c071 WHIRLPOOL e502b1416bad4b189773ba98035dfbeed0dc251d8f9b76e336450f14e8425caf92d55d2b1c2cc5ef9eb2d33eb2bf7cd55e720c1b265e45539b195fea1d7f046c
31 DIST numpy-html-1.9.1.zip 9839137 SHA256 12a24937f8273fcf79090c99b6c4154a0ecfc378386498cf2afe727ea171407c SHA512 647a6be9f93995aca14185e283a2b412678c6e8080fe4f14e7cc9ee63c28eebb64dea6bbe28f30ef6850a5565dd1e06928fd660ac762e9a91454d309eff96ed4 WHIRLPOOL 68c367fd0416d27b1cf43edf7ca48bc8845c02856bbbacdf63c88fe8bbffd5dd86fb3e5cdea8f669dd78adf7bcc4d184953048783802df323126c1b22baf8e92
32 +DIST numpy-ref-1.10.1.pdf 5382006 SHA256 72ae03348d0375ff2f18056efd04e815cc1d27b738d0685c80f5204a496bc279 SHA512 25085eb7cb80343abffe04ee01ea93603427913ba4443fbfdaa1ef1ad07a8642c47259d0bb1cb91a9059f786c03395bba76f608c6f0a2fd26d1afec4847d885c WHIRLPOOL d904d9b2824bfb08a0eeffeb37f7d646d003c39230d950d387e2ddc8e475a117b8305a0ce3dc479be72f010b1a868f22ddfde17e6c4cd7c56630bbdf09afb90e
33 DIST numpy-ref-1.8.1.pdf 5348248 SHA256 973851e66d0d5ab095f444f8aeb966fefe2dd544226395abbb110fc1b60f351d SHA512 340dd8f47430f24fea81bb3a8674e1a58f4290a9d1c5d64bac96d50b31a94a770e78381e42daf8b0a6a90cefe5cafe86b0c89f7cc7635a042a7e85eb74bdbdf5 WHIRLPOOL be13f88bb68944186c564a5c3789daededade240a26e7fb61c980a090249ab3a5b1f40805e97214168fbf0c099fb6b12d981ff313bace572f130023b29e7aaa7
34 DIST numpy-ref-1.9.1.pdf 5318122 SHA256 3c8e5881a3460e1cc9da95fe2167044e8f832ab8e980c3606d1f353e7ac6dcee SHA512 5171bb22588117a53e0eac355520581f7817a7e7a099ae83bb73f2ac8248a60e139ae9719dc543b44f25ccf8319c9f149fec1bf5aa55d943fad06a8e6da0d9ba WHIRLPOOL 5c99daf3ae2e6bf235aed287682f1b96d5b6afc9d290f544a8baab892b39c9f6dd9f649abe3e103cc90c990d87e4d653d8157d774a8bd35eccc9cc6ac7a870f9
35 +DIST numpy-user-1.10.1.pdf 406114 SHA256 5180a5a1333365e474aabba9d6edd25276e79179fd708bb3989d95dc4e76215f SHA512 998bce3777944e7b366c619e968ac4b6cc4351cd2819d6ecba7f422e20b6cd4d7332a8dede4036cd12e85b24c4c3d973bd9ef2d407610369c2591fce990fa8f4 WHIRLPOOL 4b53256663840738d288d38c4151e01ecfb515ebd4f69bb4330f4c5589642b3392a0a300f3def53df6bee8746f127a3af0d284601f288f4c4292df8b6de39f71
36 DIST numpy-user-1.8.1.pdf 408305 SHA256 be827f2d92ef86c3af7f59c623017e7bc23ee95c64f88e8c9871f3ad1f99b262 SHA512 9e646e89e7e67834fa596e43082b43842d1c59287d22fd8d20c9f0a1d3d56a518a08cc2c036de4972ad0d6d9d3c2f56e2210f76e7244d3f7547b5204d84d3c7c WHIRLPOOL bf4105093b208b35b1914e842821b8d289b46eb28f1fda110643f5970bbfafe801e9d148c5f535b43eba9a23e09d333e3aecd9a55b33e64827883d253477d19a
37 DIST numpy-user-1.9.1.pdf 418111 SHA256 e1f6baed0b73f3d4b106c88924c083f9a519e860c1beb718830bf1aee1892232 SHA512 724302468a8e93daf70d379bb1ee7369953e297c40ea260f080b7aca3c9c81e619a81705bdfb2ea214da5b5325ec2b48e953eceeaa1d60c07593b00c35989f45 WHIRLPOOL f93ed20c5da7b379e3afcafab97c7eb60231ed4f73cebf18184e00b9a8a5a531fa32992f7f28f16d2714b3056c61153c29267c8c6b93cb100e06f53bced1bd6a
38
39 diff --git a/dev-python/numpy/files/numpy-1.10.2-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.10.2-no-hardcode-blas.patch
40 new file mode 100644
41 index 0000000..db4a47d
42 --- /dev/null
43 +++ b/dev-python/numpy/files/numpy-1.10.2-no-hardcode-blas.patch
44 @@ -0,0 +1,64 @@
45 + numpy/distutils/system_info.py | 29 +++++------------------------
46 + 1 file changed, 5 insertions(+), 24 deletions(-)
47 +
48 +diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
49 +index d7eb49e..aa62b09 100644
50 +--- a/numpy/distutils/system_info.py
51 ++++ b/numpy/distutils/system_info.py
52 +@@ -306,26 +306,7 @@ def get_info(name, notfound_action=0):
53 + 1 - display warning message
54 + 2 - raise error
55 + """
56 +- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead
57 +- 'atlas_threads': atlas_threads_info, # ditto
58 +- 'atlas_blas': atlas_blas_info,
59 +- 'atlas_blas_threads': atlas_blas_threads_info,
60 +- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead
61 +- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto
62 +- 'atlas_3_10': atlas_3_10_info, # use lapack_opt or blas_opt instead
63 +- 'atlas_3_10_threads': atlas_3_10_threads_info, # ditto
64 +- 'atlas_3_10_blas': atlas_3_10_blas_info,
65 +- 'atlas_3_10_blas_threads': atlas_3_10_blas_threads_info,
66 +- 'lapack_atlas_3_10': lapack_atlas_3_10_info, # use lapack_opt instead
67 +- 'lapack_atlas_3_10_threads': lapack_atlas_3_10_threads_info, # ditto
68 +- 'mkl': mkl_info,
69 +- # openblas which may or may not have embedded lapack
70 +- 'openblas': openblas_info, # use blas_opt instead
71 +- # openblas with embedded lapack
72 +- 'openblas_lapack': openblas_lapack_info, # use blas_opt instead
73 +- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead
74 +- 'blas_mkl': blas_mkl_info, # use blas_opt instead
75 +- 'x11': x11_info,
76 ++ cl = {'x11': x11_info,
77 + 'fft_opt': fft_opt_info,
78 + 'fftw': fftw_info,
79 + 'fftw2': fftw2_info,
80 +@@ -1690,7 +1671,7 @@ class blas_info(system_info):
81 + lib = self.has_cblas(info)
82 + if lib is not None:
83 + info['language'] = 'c'
84 +- info['libraries'] = [lib]
85 ++ info['libraries'] = lib
86 + info['define_macros'] = [('HAVE_CBLAS', None)]
87 + self.set_info(**info)
88 +
89 +@@ -1722,16 +1703,16 @@ class blas_info(system_info):
90 + # check for cblas lib, and if not present check for blas lib.
91 + try:
92 + c.link_executable(obj, os.path.join(tmpdir, "a.out"),
93 +- libraries=["cblas"],
94 ++ libraries=info["libraries"],
95 + library_dirs=info['library_dirs'],
96 + extra_postargs=info.get('extra_link_args', []))
97 +- res = "cblas"
98 ++ res = info["libraries"]
99 + except distutils.ccompiler.LinkError:
100 + c.link_executable(obj, os.path.join(tmpdir, "a.out"),
101 + libraries=["blas"],
102 + library_dirs=info['library_dirs'],
103 + extra_postargs=info.get('extra_link_args', []))
104 +- res = "blas"
105 ++ res = ["blas"]
106 + except distutils.ccompiler.CompileError:
107 + res = None
108 + finally:
109
110 diff --git a/dev-python/numpy/files/numpy-1.9.2-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.9.2-no-hardcode-blas.patch
111 index 674dbfa..db4a47d 100644
112 --- a/dev-python/numpy/files/numpy-1.9.2-no-hardcode-blas.patch
113 +++ b/dev-python/numpy/files/numpy-1.9.2-no-hardcode-blas.patch
114 @@ -1,11 +1,11 @@
115 - numpy/distutils/system_info.py | 21 +--------------------
116 - 1 file changed, 1 insertion(+), 20 deletions(-)
117 + numpy/distutils/system_info.py | 29 +++++------------------------
118 + 1 file changed, 5 insertions(+), 24 deletions(-)
119
120 diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
121 -index a050430..d0878a5 100644
122 +index d7eb49e..aa62b09 100644
123 --- a/numpy/distutils/system_info.py
124 +++ b/numpy/distutils/system_info.py
125 -@@ -303,26 +303,7 @@ def get_info(name, notfound_action=0):
126 +@@ -306,26 +306,7 @@ def get_info(name, notfound_action=0):
127 1 - display warning message
128 2 - raise error
129 """
130 @@ -33,3 +33,32 @@ index a050430..d0878a5 100644
131 'fft_opt': fft_opt_info,
132 'fftw': fftw_info,
133 'fftw2': fftw2_info,
134 +@@ -1690,7 +1671,7 @@ class blas_info(system_info):
135 + lib = self.has_cblas(info)
136 + if lib is not None:
137 + info['language'] = 'c'
138 +- info['libraries'] = [lib]
139 ++ info['libraries'] = lib
140 + info['define_macros'] = [('HAVE_CBLAS', None)]
141 + self.set_info(**info)
142 +
143 +@@ -1722,16 +1703,16 @@ class blas_info(system_info):
144 + # check for cblas lib, and if not present check for blas lib.
145 + try:
146 + c.link_executable(obj, os.path.join(tmpdir, "a.out"),
147 +- libraries=["cblas"],
148 ++ libraries=info["libraries"],
149 + library_dirs=info['library_dirs'],
150 + extra_postargs=info.get('extra_link_args', []))
151 +- res = "cblas"
152 ++ res = info["libraries"]
153 + except distutils.ccompiler.LinkError:
154 + c.link_executable(obj, os.path.join(tmpdir, "a.out"),
155 + libraries=["blas"],
156 + library_dirs=info['library_dirs'],
157 + extra_postargs=info.get('extra_link_args', []))
158 +- res = "blas"
159 ++ res = ["blas"]
160 + except distutils.ccompiler.CompileError:
161 + res = None
162 + finally:
163
164 diff --git a/dev-python/numpy/numpy-1.10.2.ebuild b/dev-python/numpy/numpy-1.10.2-r1.ebuild
165 similarity index 95%
166 rename from dev-python/numpy/numpy-1.10.2.ebuild
167 rename to dev-python/numpy/numpy-1.10.2-r1.ebuild
168 index 79f9a89..9dc68cd 100644
169 --- a/dev-python/numpy/numpy-1.10.2.ebuild
170 +++ b/dev-python/numpy/numpy-1.10.2-r1.ebuild
171 @@ -11,7 +11,7 @@ FORTRAN_NEEDED=lapack
172
173 inherit distutils-r1 eutils flag-o-matic fortran-2 multilib multiprocessing toolchain-funcs versionator
174
175 -DOC_PV="1.9.1"
176 +DOC_PV="1.10.1"
177 DOC_P="${PN}-${DOC_PV}"
178
179 DESCRIPTION="Fast array and numerical python library"
180 @@ -40,7 +40,7 @@ DEPEND="${RDEPEND}
181 DISTUTILS_IN_SOURCE_BUILD=1
182
183 PATCHES=(
184 - "${FILESDIR}"/${PN}-1.9.2-no-hardcode-blas.patch
185 + "${FILESDIR}"/${P}-no-hardcode-blas.patch
186 )
187
188 src_unpack() {
189 @@ -110,13 +110,9 @@ python_prepare_all() {
190
191 # we don't have f2py-3.3
192 sed \
193 - -e "/f2py_cmd/s:'f2py'.*:'f2py':g" \
194 + -e "/f2py_cmd/s:'f2py'.*:'f2py'\]:g" \
195 -i numpy/tests/test_scripts.py || die
196
197 - sed \
198 - -e "s:\"cblas\":\"$(pc_libs cblas)\":g" \
199 - -i numpy/distutils/system_info.py || die
200 -
201 distutils-r1_python_prepare_all
202 }