[fink:package-submissions] #4930 numpy-py-1.13.0-1
Derek Homeier via Fink-tracker <[email protected]>
| Newsgroups | gmane.os.apple.fink.tracker |
|---|---|
| Message-ID | </p/fink/package-submissions/4930/6eef9e27920846bedfec7e4b998532d919f74119.package-submissions@fink.p.sourceforge.net> |
The culprit seems to be `_exec_command` in `numpy/distutils/exec_command.py`:
```
+
+ if os.name == 'posix' and use_shell:
+ # On POSIX, subprocess always uses /bin/sh, override
sh = os.environ.get('SHELL', '/bin/sh')
if is_sequence(command):
```
Since `$SHELL` is `/usr/bin/false` for `fink-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 for `1.13.1` (tested for `py35` 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 the `numpy.distutils` tests (producing errors in `test_compile1`, `test_compile2` and `test_basic` otherwise, so maybe this should be pointed out upstream.
Attachments:
- [numpy-py.info](https://sourceforge.net/p/fink/package-submissions/_discuss/thread/2c9e1817/467b/attachment/numpy-py.info) (3.0 kB; application/octet-stream)
---
** [package-submissions:#4930] numpy-py-1.13.0-1**
**Status:** open
**Group:** Undergoing_Validation
**Created:** Mon Jun 12, 2017 09:27 PM UTC by Jack Howarth
**Last Updated:** Mon Jun 12, 2017 09:29 PM UTC
**Owner:** nobody
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 <[email protected]>
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
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/fink/package-submissions/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/fink/admin/package-submissions/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fink-tracker mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.tracker