aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-numpy
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-numpy')
-rw-r--r--community/py-numpy/APKBUILD102
-rw-r--r--community/py-numpy/fix-undefined-functions-on-big-endian-systems.patch35
-rw-r--r--community/py-numpy/numpy-1.11.0-musl.patch9
-rw-r--r--community/py-numpy/site.cfg157
4 files changed, 0 insertions, 303 deletions
diff --git a/community/py-numpy/APKBUILD b/community/py-numpy/APKBUILD
deleted file mode 100644
index 002dd8d4b3..0000000000
--- a/community/py-numpy/APKBUILD
+++ /dev/null
@@ -1,102 +0,0 @@
-# Contributor: Francesco Colista <fcolista@alpinelinux.org>
-# Contributor: Jakub Jirutka <jakub@jirutka.cz>
-# Contributor: Martell Malone <martellmalone@gmail.com>
-# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-numpy
-_pkgname=numpy
-pkgver=1.16.4
-pkgrel=1
-pkgdesc="Scientific tools for Python"
-url="https://www.numpy.org/"
-arch="all"
-license="BSD-3-Clause"
-options="!check"
-makedepends="python2-dev py-setuptools python3-dev
- cython openblas-dev>=0.3.0 gfortran py-nose"
-subpackages="$pkgname-dev
- $pkgname-doc
- $pkgname-f2py::noarch
- py2-$_pkgname-f2py:_f2py:noarch
- py3-$_pkgname-f2py:_f2py:noarch
- py2-$_pkgname:_py
- py3-$_pkgname:_py"
-source="https://github.com/numpy/numpy/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz
- site.cfg"
-builddir="$srcdir/$_pkgname-$pkgver"
-
-prepare() {
- default_prepare
- cp "$srcdir"/site.cfg "$builddir"/
-}
-
-build() {
- export Atlas=None
- LDFLAGS="$LDFLAGS -shared"
-
- python2 setup.py build config_fc --fcompiler=gnu95
- python3 setup.py build config_fc --fcompiler=gnu95
-}
-
-package() {
- local python; for python in python2 python3; do
- $python setup.py install --prefix=/usr --root="$pkgdir" \
- config_fc --fcompiler=gnu95
- done
-
- install -D -m 644 LICENSE.txt \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-dev() {
- cd "$pkgdir"
-
- # Move tests to -dev subpackage.
- find usr/lib/python* -type d -name tests | while read path; do
- mkdir -p "$subpkgdir/$path"
- mv "$path"/* "$subpkgdir/$path"/
- done
-
- default_dev
-}
-
-f2py() {
- mkdir -p "$subpkgdir"
-}
-
-_f2py() {
- local pyver="${subpkgname:2:1}"
- local python="python$pyver"
-
- pkgdesc="f2py for numpy (for $python)"
- depends="py$pyver-numpy=$pkgver-r$pkgrel $python-dev"
- install_if="$pkgname-f2py=$pkgver-r$pkgrel $python"
- [ "$pyver" = 3 ] || replaces="$pkgname"
-
- local dir="$(_pylibdir $python)/site-packages/numpy"
-
- mkdir -p "$subpkgdir/$dir" "$subpkgdir"/usr/bin
- mv "$pkgdir/$dir"/f2py "$subpkgdir/$dir"/
- mv "$pkgdir"/usr/bin/f2py$pyver "$subpkgdir"/usr/bin/
-}
-
-_py() {
- local pyver="${subpkgname:2:1}"
- local python="python$pyver"
-
- pkgdesc="$pkgdesc $pyver"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
- [ "$pyver" = 3 ] || replaces="$pkgname"
-
- local libdir=$(_pylibdir $python)
-
- mkdir -p "$subpkgdir/$libdir"
- mv "$pkgdir/$libdir"/* "$subpkgdir/$libdir"/
- rmdir -p "$pkgdir/$libdir" 2>/dev/null || true
-}
-
-_pylibdir() {
- "$1" -c 'import sysconfig; print(sysconfig.get_path("stdlib"))'
-}
-
-sha512sums="427897a9e28a7e7648ebb0df8897a31c358fc5941773a120a534af6375d5963298f283185f36a7ac1c1e2b3511d2ba03d0779438acc849e1cf654f1454fc3c02 numpy-1.16.4.tar.gz
-21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f site.cfg"
diff --git a/community/py-numpy/fix-undefined-functions-on-big-endian-systems.patch b/community/py-numpy/fix-undefined-functions-on-big-endian-systems.patch
deleted file mode 100644
index 9a965c59ab..0000000000
--- a/community/py-numpy/fix-undefined-functions-on-big-endian-systems.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From ec843c7008b3d89e6f6023b88ac0f1d02e39be17 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sat, 11 Aug 2018 02:45:01 -0400
-Subject: [PATCH] BUG: Fix undefined functions on big-endian systems.
-
-Both these functions are used by `Dragon4_PrintFloat_IEEE_binary128`,
-which was recently made available on big-endian systems without these
-in #11568.
----
- numpy/core/src/multiarray/dragon4.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/numpy/core/src/multiarray/dragon4.c b/numpy/core/src/multiarray/dragon4.c
-index abbf05220b1..2e599136efc 100644
---- a/numpy/core/src/multiarray/dragon4.c
-+++ b/numpy/core/src/multiarray/dragon4.c
-@@ -114,7 +114,7 @@ LogBase2_64(npy_uint64 val)
- return LogBase2_32((npy_uint32)val);
- }
-
--#if defined(HAVE_LDOUBLE_IEEE_QUAD_LE)
-+#if defined(HAVE_LDOUBLE_IEEE_QUAD_LE) || defined(HAVE_LDOUBLE_IEEE_QUAD_BE)
- static npy_uint32
- LogBase2_128(npy_uint64 hi, npy_uint64 lo)
- {
-@@ -217,7 +217,8 @@ BigInt_Set_uint64(BigInt *i, npy_uint64 val)
-
- #if (defined(HAVE_LDOUBLE_IBM_DOUBLE_DOUBLE_LE) || \
- defined(HAVE_LDOUBLE_IBM_DOUBLE_DOUBLE_BE) || \
-- defined(HAVE_LDOUBLE_IEEE_QUAD_LE))
-+ defined(HAVE_LDOUBLE_IEEE_QUAD_LE) || \
-+ defined(HAVE_LDOUBLE_IEEE_QUAD_BE))
- static void
- BigInt_Set_2x_uint64(BigInt *i, npy_uint64 hi, npy_uint64 lo)
- {
diff --git a/community/py-numpy/numpy-1.11.0-musl.patch b/community/py-numpy/numpy-1.11.0-musl.patch
deleted file mode 100644
index da289f6407..0000000000
--- a/community/py-numpy/numpy-1.11.0-musl.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- numpy-1.11.0.orig/numpy/core/src/multiarray/numpyos.c
-+++ numpy-1.11.0/numpy/core/src/multiarray/numpyos.c
-@@ -15,7 +15,7 @@
-
- #ifdef HAVE_STRTOLD_L
- #include <stdlib.h>
--#include <xlocale.h>
-+#include <locale.h>
- #endif
diff --git a/community/py-numpy/site.cfg b/community/py-numpy/site.cfg
deleted file mode 100644
index effb46f110..0000000000
--- a/community/py-numpy/site.cfg
+++ /dev/null
@@ -1,157 +0,0 @@
-# This file provides configuration information about non-Python dependencies for
-# numpy.distutils-using packages. Create a file like this called "site.cfg" next
-# to your package's setup.py file and fill in the appropriate sections. Not all
-# packages will use all sections so you should leave out sections that your
-# package does not use.
-
-# To assist automatic installation like easy_install, the user's home directory
-# will also be checked for the file ~/.numpy-site.cfg .
-
-# The format of the file is that of the standard library's ConfigParser module.
-#
-# http://www.python.org/doc/current/lib/module-ConfigParser.html
-#
-# Each section defines settings that apply to one particular dependency. Some of
-# the settings are general and apply to nearly any section and are defined here.
-# Settings specific to a particular section will be defined near their section.
-#
-# libraries
-# Comma-separated list of library names to add to compile the extension
-# with. Note that these should be just the names, not the filenames. For
-# example, the file "libfoo.so" would become simply "foo".
-# libraries = lapack,f77blas,cblas,atlas
-#
-# library_dirs
-# List of directories to add to the library search path when compiling
-# extensions with this dependency. Use the character given by os.pathsep
-# to separate the items in the list. Note that this character is known to
-# vary on some unix-like systems; if a colon does not work, try a comma.
-# This also applies to include_dirs and src_dirs (see below).
-# On UN*X-type systems (OS X, most BSD and Linux systems):
-# library_dirs = /usr/lib:/usr/local/lib
-# On Windows:
-# library_dirs = c:\mingw\lib,c:\atlas\lib
-# On some BSD and Linux systems:
-# library_dirs = /usr/lib,/usr/local/lib
-#
-# include_dirs
-# List of directories to add to the header file earch path.
-# include_dirs = /usr/include:/usr/local/include
-#
-# src_dirs
-# List of directories that contain extracted source code for the
-# dependency. For some dependencies, numpy.distutils will be able to build
-# them from source if binaries cannot be found. The FORTRAN BLAS and
-# LAPACK libraries are one example. However, most dependencies are more
-# complicated and require actual installation that you need to do
-# yourself.
-# src_dirs = /home/rkern/src/BLAS_SRC:/home/rkern/src/LAPACK_SRC
-#
-# search_static_first
-# Boolean (one of (0, false, no, off) for False or (1, true, yes, on) for
-# True) to tell numpy.distutils to prefer static libraries (.a) over
-# shared libraries (.so). It is turned off by default.
-# search_static_first = false
-
-# Defaults
-# ========
-# The settings given here will apply to all other sections if not overridden.
-# This is a good place to add general library and include directories like
-# /usr/local/{lib,include}
-#
-#[DEFAULT]
-#library_dirs = /usr/local/lib
-#include_dirs = /usr/local/include
-
-# Atlas
-# -----
-# Atlas is an open source optimized implementation of the BLAS and Lapack
-# routines. Numpy will try to build against Atlas by default when available in
-# the system library dirs. To build numpy against a custom installation of
-# Atlas you can add an explicit section such as the following. Here we assume
-# that Atlas was configured with ``prefix=/opt/atlas``.
-#
-# [atlas]
-# library_dirs = /opt/atlas/lib
-# include_dirs = /opt/atlas/include
-
-# OpenBLAS
-# --------
-# OpenBLAS is another open source optimized implementation of BLAS and Lapack
-# and can be seen as an alternative to Atlas. To build numpy against OpenBLAS
-# instead of Atlas, use this section instead of the above, adjusting as needed
-# for your configuration (in the following example we installed OpenBLAS with
-# ``make install PREFIX=/opt/OpenBLAS``.
-#
-# **Warning**: OpenBLAS, by default, is built in multithreaded mode. Due to the
-# way Python's multiprocessing is implemented, a multithreaded OpenBLAS can
-# cause programs using both to hang as soon as a worker process is forked on
-# POSIX systems (Linux, Mac).
-# This is fixed in Openblas 0.2.9 for the pthread build, the OpenMP build using
-# GNU openmp is as of gcc-4.9 not fixed yet.
-# Python 3.4 will introduce a new feature in multiprocessing, called the
-# "forkserver", which solves this problem. For older versions, make sure
-# OpenBLAS is built using pthreads or use Python threads instead of
-# multiprocessing.
-# (This problem does not exist with multithreaded ATLAS.)
-#
-# http://docs.python.org/3.4/library/multiprocessing.html#contexts-and-start-methods
-# https://github.com/xianyi/OpenBLAS/issues/294
-#
-[openblas]
-libraries = openblas
-library_dirs = /usr/lib
-include_dirs = /usr/include
-
-# MKL
-#----
-# MKL is Intel's very optimized yet proprietary implementation of BLAS and
-# Lapack.
-# For recent (9.0.21, for example) mkl, you need to change the names of the
-# lapack library. Assuming you installed the mkl in /opt, for a 32 bits cpu:
-# [mkl]
-# library_dirs = /opt/intel/mkl/9.1.023/lib/32/
-# lapack_libs = mkl_lapack
-#
-# For 10.*, on 32 bits machines:
-# [mkl]
-# library_dirs = /opt/intel/mkl/10.0.1.014/lib/32/
-# lapack_libs = mkl_lapack
-# mkl_libs = mkl, guide
-
-# UMFPACK
-# -------
-# The UMFPACK library is used in scikits.umfpack to factor large sparse matrices.
-# It, in turn, depends on the AMD library for reordering the matrices for
-# better performance. Note that the AMD library has nothing to do with AMD
-# (Advanced Micro Devices), the CPU company.
-#
-# UMFPACK is not needed for numpy or scipy.
-#
-# http://www.cise.ufl.edu/research/sparse/umfpack/
-# http://www.cise.ufl.edu/research/sparse/amd/
-# http://scikits.appspot.com/umfpack
-#
-#[amd]
-#amd_libs = amd
-#
-#[umfpack]
-#umfpack_libs = umfpack
-
-# FFT libraries
-# -------------
-# There are two FFT libraries that we can configure here: FFTW (2 and 3) and djbfft.
-# Note that these libraries are not needed for numpy or scipy.
-#
-# http://fftw.org/
-# http://cr.yp.to/djbfft.html
-#
-# Given only this section, numpy.distutils will try to figure out which version
-# of FFTW you are using.
-#[fftw]
-#libraries = fftw3
-#
-# For djbfft, numpy.distutils will look for either djbfft.a or libdjbfft.a .
-#[djbfft]
-#include_dirs = /usr/local/djbfft/include
-#library_dirs = /usr/local/djbfft/lib