Browse Source

d/Cython: Patched to fix Numpy/Matplotlib build.

slackware-15.0
parent
commit
4ace91fec6
  1. 13
      d/Cython/Cython-0.29.19-fix-build-ext.patch
  2. 1
      d/Cython/Cython-0.29.19.tar.gz.sha256
  3. 18
      d/Cython/Cython.SlackBuild
  4. 12
      d/Cython/slack-desc
  5. 1
      d/cython/Cython-0.29.14.tar.gz.sha256
  6. 12
      d/cython/slack-desc

13
d/Cython/Cython-0.29.19-fix-build-ext.patch

@ -0,0 +1,13 @@
diff -Naur Cython-0.29.19.orig/Cython/Distutils/old_build_ext.py Cython-0.29.19/Cython/Distutils/old_build_ext.py
--- Cython-0.29.19.orig/Cython/Distutils/old_build_ext.py 2020-06-20 10:26:46.222526352 +0100
+++ Cython-0.29.19/Cython/Distutils/old_build_ext.py 2020-06-20 10:28:55.736713790 +0100
@@ -191,8 +191,7 @@
for ext in self.extensions:
ext.sources = self.cython_sources(ext.sources, ext)
- # Call original build_extensions
- _build_ext.build_ext.build_extensions(self)
+ self.build_extension(ext)
def cython_sources(self, sources, extension):
"""

1
d/Cython/Cython-0.29.19.tar.gz.sha256

@ -0,0 +1 @@
97f98a7dc0d58ea833dc1f8f8b3ce07adf4c0f030d1886c5399a2135ed415258 Cython-0.29.19.tar.gz

18
d/cython/cython.SlackBuild → d/Cython/Cython.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2013,2015-2017,2019 Damien Goutte-Gattat
# Copyright (C) 2012,2013,2015-2017,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,14 +23,18 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest cython sourcecode is available at: <http://cython.org/>.
#
# Note: This script builds a replacement package for Slackware's
# stock Cython, which suffers from a bug making Matplotlib unususable.
# <https://github.com/cython/cython/issues/3269>.
# Source package infos
NAMESRC=${NAMESRC:-Cython}
VERSION=${VERSION:-0.29.14}
VERSION=${VERSION:-0.29.19}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-cython}
NAMEPKG=${NAMEPKG:-Cython}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
@ -79,13 +83,7 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python2 setup.py build
python2 setup.py install --root=$PKG
for f in cygdb cythonize cython ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-2.7
done
patch -p 1 < $CWD/Cython-0.29.19-fix-build-ext.patch
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build

12
d/Cython/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler-------------------------------------------------------|
Cython: Cython (Cython compiler for extending the Python language)
Cython:
Cython: The Cython language makes writing C extensions for the Python
Cython: language as Python itself. Cython is a source code translator based
Cython: on the well-known Pyrex, but supports more currint edge
Cython: functionality and optimizations.
Cython:
Cython:
Cython:
Cython:
Cython:

1
d/cython/Cython-0.29.14.tar.gz.sha256

@ -1 +0,0 @@
e4d6bb8703d0319eb04b7319b12ea41580df44fd84d83ccda13ea463c6801414 Cython-0.29.14.tar.gz

12
d/cython/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-------------------------------------------------------|
cython: cython (Cython compiler for extending the Python language)
cython:
cython: The Cython language makes writing C extensions for the Python
cython: language as Python itself. Cython is a source code translator based
cython: on the well-known Pyrex, but supports more currint edge
cython: functionality and optimizations.
cython:
cython:
cython:
cython:
cython:
Loading…
Cancel
Save