Test packaging for a numpy-py-1.13.0-1 which only successfully builds with --no-build-as-nobody due to rewrite of numpy/distutils. Current info file changes are...
Index: numpy-py.info =================================================================== RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/sci/numpy-py.info,v retrieving revision 1.12 diff -u -r1.12 numpy-py.info --- numpy-py.info 19 Mar 2017 21:49:31 -0000 1.12 +++ numpy-py.info 12 Jun 2017 21:20:40 -0000 @@ -1,6 +1,6 @@ Info2: << Package: numpy-py%type_pkg[python] -Version: 1.12.1 +Version: 1.13.0 Revision: 1 Maintainer: None <fink-devel@lists.sourceforge.net> Type: python (2.7 3.4 3.5 3.6) @@ -12,16 +12,17 @@ setuptools-tng-py%type_pkg[python] << BuildConflicts: atlas -Source: https://pypi.python.org/packages/a5/16/8a678404411842fe02d780b5f0a676ff4d79cd58f0f22acddab1b392e230/numpy-%v.zip#md5=33e5a84579f31829bbbba084fe0a4300 -Source-MD5: c75b072a984028ac746a6a332c209a91 +Source: https://pypi.python.org/packages/05/84/0feb999c05f252af50a5fbc463268044feda92cdaad8cb0d0a6073d76057/numpy-%v.zip#md5=fd044f0b8079abeaf5e6d2e93b2c1d03 +Source-MD5: fd044f0b8079abeaf5e6d2e93b2c1d03 SourceRename: numpy-%v.zip PatchFile: numpy-py.patch -PatchFile-MD5: 45a158bbad1e117673730d2101e3fdf4 +PatchFile-MD5: f146c2cf848a5b78b3b1b8b2dab30cde Conflicts: f2py-py%type_pkg[python], scipy-py%type_pkg[python] (<= 1:0.4) Replaces: f2py-py%type_pkg[python], scipy-py%type_pkg[python] (<= 1:0.4), scipy-core-py%type_pkg[python] (<< 1.3.0-6) Provides: f2py-py%type_pkg[python] PatchScript: sed 's|@FINKPREFIX@|%p|g' <%{PatchFile} | patch -p1 CompileScript: << +#!/bin/bash -ev ATLAS=None LAPACK=/usr/lib BLAS=/usr/lib %p/bin/python%type_raw[python] setup.py build << InstallScript: <<
The changes from 0.12,1 for numpy/distutls is posted at https://pastebin.com/RYWJ3gTm
Info file for numpy-py-1.13.0-1
Patch file for numpy-py-1.13.0-1
When built as fink nobody, the build fails with...
The culprit seems to be
_exec_command
innumpy/distutils/exec_command.py
:Since
$SHELL
is/usr/bin/false
forfink-bld
, this is doomed to fail...Quick (and dirty?) fix is to set it explicitly for
setup.py
- I am attaching the info file, updated for1.13.1
(tested forpy35
on 10.12 so far).If this is against packaging policy or good practices, the check for 'posix' systems above would probably need to be patched somehow. Note that the requirement for
$SHELL
to be set includes thenumpy.distutils
tests (producing errors intest_compile1
,test_compile2
andtest_basic
otherwise, so maybe this should be pointed out upstream.Tested all versions on 10.11 and 10.12 now.
[#5028]
Related
Package Submissions:
#5028