1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#! /bin/sh -e
# DP: Don't include /usr/local/include and /usr/local/lib as gcc search paths
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 < $0
#cd ${dir}gcc && autoconf
;;
-unpatch)
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
#rm ${dir}gcc/configure
;;
*)
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
exit 1
esac
exit 0
--- setup.py~ 2002-08-02 20:02:01.000000000 +0200
+++ setup.py 2002-08-02 20:13:25.000000000 +0200
@@ -227,8 +227,9 @@
def detect_modules(self):
# Ensure that /usr/local is always used
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
+ # On Debian /usr/local is always used, so we don't include it twice
+ #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
+ #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
if os.path.normpath(sys.prefix) != '/usr':
add_dir_to_list(self.compiler.library_dirs,
@@ -395,10 +395,12 @@
# These don't work for 64-bit platforms!!!
# These represent audio samples or images as strings:
+ # This one should actually work fine on 64-bit platforms. :P
+ exts.append( Extension('audioop', ['audioop.c']) )
+
# Disabled on 64-bit platforms
if sys.maxint != 9223372036854775807L:
# Operations on audio samples
- exts.append( Extension('audioop', ['audioop.c']) )
# Operations on images
exts.append( Extension('imageop', ['imageop.c']) )
# Read SGI RGB image files (but coded portably)
@@ -500,6 +500,7 @@
'/opt/sfw/include/db4',
'/sw/include/db4',
'/usr/include/db4',
+ '/usr/include',
)},
'db3': {'libs': ('db-3.3', 'db-3.2', 'db-3.1', 'db3',),
'libdirs': ('/usr/local/BerkeleyDB.3.3/lib',
--- Makefile.pre.in~ 2003-11-18 20:54:00.000000000 +0100
+++ Makefile.pre.in 2004-04-25 17:07:40.000000000 +0200
@@ -645,10 +645,13 @@
plat-mac/lib-scriptpackages/SystemEvents \
plat-mac/lib-scriptpackages/Terminal
PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
-LIBSUBDIRS= lib-old lib-tk site-packages test test/output test/data \
- encodings email email/test email/test/data compiler hotshot \
- logging bsddb bsddb/test csv idlelib idlelib/Icons \
- distutils distutils/command $(XMLLIBSUBDIRS) curses $(MACHDEPS)
+TESTLIBSUBDIRS= test test/output test/data \
+ email/test email/test/data bsddb/test
+LIBSUBDIRS= lib-old lib-tk site-packages \
+ encodings email compiler hotshot \
+ logging bsddb csv idlelib idlelib/Icons \
+ distutils distutils/command $(XMLLIBSUBDIRS) \
+ $(TESTLIBSUBDIRS) curses $(MACHDEPS)
libinstall: $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
@for i in $(SCRIPTDIR) $(LIBDEST); \
do \
|