aboutsummaryrefslogtreecommitdiff
path: root/development/MySQL-python
diff options
context:
space:
mode:
Diffstat (limited to 'development/MySQL-python')
-rw-r--r--development/MySQL-python/MySQL-python.SlackBuild5
-rw-r--r--development/MySQL-python/no_distribute_download.patch12
2 files changed, 16 insertions, 1 deletions
diff --git a/development/MySQL-python/MySQL-python.SlackBuild b/development/MySQL-python/MySQL-python.SlackBuild
index d006af0263a7b..7c68cb94ca412 100644
--- a/development/MySQL-python/MySQL-python.SlackBuild
+++ b/development/MySQL-python/MySQL-python.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=MySQL-python
VERSION=1.2.4
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -52,6 +52,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Avoid downloading distribute
+patch -p1 < $CWD/no_distribute_download.patch
+
python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/development/MySQL-python/no_distribute_download.patch b/development/MySQL-python/no_distribute_download.patch
new file mode 100644
index 0000000000000..2a948023738b6
--- /dev/null
+++ b/development/MySQL-python/no_distribute_download.patch
@@ -0,0 +1,12 @@
+diff -Naur MySQL-python-1.2.4.orig/setup.py MySQL-python-1.2.4/setup.py
+--- MySQL-python-1.2.4.orig/setup.py 2012-10-08 13:46:54.000000000 +0200
++++ MySQL-python-1.2.4/setup.py 2013-12-06 20:34:36.214964072 +0100
+@@ -3,8 +3,6 @@
+ import os
+ import sys
+
+-from distribute_setup import use_setuptools
+-use_setuptools()
+ from setuptools import setup, Extension
+
+ if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000: