[fink:package-submissions] #5028 update numpy to the 1.13.3 release

Jack Howarth via Fink-tracker <[email protected]> Wed, 08 Nov 2017 11:32:41 -0000
Newsgroups gmane.os.apple.fink.tracker
Message-ID </p/fink/package-submissions/5028/1e4ddd899f6d81e92108a53b92209029e45fa9e9.package-submissions@fink.p.sourceforge.net>
Hanspeter, if you are going to suppress the installation of the pyc files during the InstallScript, you really should have added PostInstScript to generate them on package installation and a PreRmScript to delete them on package removal. Please fix that damage to the packaging.


---

** [package-submissions:#5028] update numpy to the 1.13.3 release**

**Status:** closed-accepted
**Group:** Added_to_Fink
**Labels:** sci Updated Version of Existing 
**Created:** Sun Oct 01, 2017 05:33 PM UTC by Jack Howarth
**Last Updated:** Wed Nov 08, 2017 02:40 AM UTC
**Owner:** nobody


The following Info file changes update the numpy-py package to the current 1.13.3 upstream release...

~~~
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	1 Oct 2017 17:29:06 -0000
@@ -1,6 +1,6 @@
 Info2: <<
 Package: numpy-py%type_pkg[python]
-Version: 1.12.1
+Version: 1.13.3
 Revision: 1
 Maintainer: None <[email protected]>
 Type: python (2.7 3.4 3.5 3.6)
@@ -12,8 +12,9 @@
 	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
+BuildAsNobody: false
+Source: https://pypi.python.org/packages/bf/2d/005e45738ab07a26e621c9c12dc97381f372e06678adf7dc3356a69b5960/numpy-%v.zip#md5=300a6f0528122128ac07c6deb5c95917
+Source-MD5: 300a6f0528122128ac07c6deb5c95917
 SourceRename: numpy-%v.zip
 PatchFile: numpy-py.patch
 PatchFile-MD5: 45a158bbad1e117673730d2101e3fdf4
~~~

Note that the 1.13.x series has totally rewritten the configuration tests which now are incompatible with building under fink-bld...

~~~
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
C compiler: gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/sw/include/python2.7 -c'
gcc: _configtest.c

failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 392, in <module>
    setup_package()
  File "setup.py", line 384, in setup_package
    setup(**metadata)
  File "/sw/src/fink.build/numpy-py27-1.13.3-1/numpy-1.13.3/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/sw/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/sw/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/sw/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/sw/src/fink.build/numpy-py27-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build.py", line 47, in run
    old_build.run(self)
  File "/sw/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/sw/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/sw/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/sw/src/fink.build/numpy-py27-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py", line 148, in run
    self.build_sources()
  File "/sw/src/fink.build/numpy-py27-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py", line 159, in build_sources
    self.build_library_sources(*libname_info)
  File "/sw/src/fink.build/numpy-py27-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py", line 294, in build_library_sources
    sources = self.generate_sources(sources, (lib_name, build_info))
  File "/sw/src/fink.build/numpy-py27-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py", line 377, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 674, in get_mathlib_info
    raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
~~~

Tested on 10.13 with 'fink -m' for the 2.7, 3.5 and 3.6 python variants.


---

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