summaryrefslogtreecommitdiff
path: root/lang/python23/patches/patch-aa
blob: 0d51746cd02e1cace8d00bac13f37528b0665825 (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
$NetBSD: patch-aa,v 1.1.1.1 2003/08/04 08:25:23 drochner Exp $

--- setup.py.orig	2003-07-10 14:48:39.000000000 +0200
+++ setup.py	2003-08-03 12:13:44.000000000 +0200
@@ -240,9 +240,13 @@
         return sys.platform
 
     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')
+	# Add the buildlink directories for pkgsrc
+	if os.environ.has_key('BUILDLINK_DIR'):
+	    dir = os.environ['BUILDLINK_DIR']
+	    libdir = dir + '/lib'
+	    incdir = dir + '/include'
+	    add_dir_to_list(self.compiler.library_dirs, libdir)
+	    add_dir_to_list(self.compiler.include_dirs, incdir)
 
         # fink installs lots of goodies in /sw/... - make sure we
         # check there
@@ -396,7 +400,7 @@
         # These represent audio samples or images as strings:
 
         # Disabled on 64-bit platforms
-        if sys.maxint != 9223372036854775807L:
+        if 0 and sys.maxint != 9223372036854775807L:
             # Operations on audio samples
             exts.append( Extension('audioop', ['audioop.c']) )
             # Operations on images
@@ -405,7 +409,7 @@
             exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
 
         # readline
-        if self.compiler.find_library_file(lib_dirs, 'readline'):
+        if 0 and self.compiler.find_library_file(lib_dirs, 'readline'):
             readline_libs = ['readline']
             if self.compiler.find_library_file(lib_dirs,
                                                  'ncurses'):
@@ -436,9 +440,7 @@
                                depends = ['socketmodule.h']) )
         # Detect SSL support for the socket module (via _ssl)
         ssl_incs = find_file('openssl/ssl.h', inc_dirs,
-                             ['/usr/local/ssl/include',
-                              '/usr/contrib/ssl/include/'
-                             ]
+                             []
                              )
         if ssl_incs is not None:
             krb5_h = find_file('krb5.h', inc_dirs,
@@ -446,9 +448,7 @@
             if krb5_h:
                 ssl_incs += krb5_h
         ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
-                                     ['/usr/local/ssl/lib',
-                                      '/usr/contrib/ssl/lib/'
-                                     ] )
+                                     [] )
 
         if (ssl_incs is not None and
             ssl_libs is not None):
@@ -608,7 +608,7 @@
                                        libraries=dblibs))
 
         # Anthony Baxter's gdbm module.  GNU dbm(3) will require -lgdbm:
-        if (self.compiler.find_library_file(lib_dirs, 'gdbm')):
+        if 0 and (self.compiler.find_library_file(lib_dirs, 'gdbm')):
             exts.append( Extension('gdbm', ['gdbmmodule.c'],
                                    libraries = ['gdbm'] ) )
 
@@ -626,7 +626,7 @@
         # FTP archive sites. One URL for it is:
         # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
 
-        if (self.compiler.find_library_file(lib_dirs, 'gmp')):
+        if 0 and (self.compiler.find_library_file(lib_dirs, 'gmp')):
             exts.append( Extension('mpz', ['mpzmodule.c'],
                                    libraries = ['gmp'] ) )
 
@@ -658,7 +658,7 @@
             curses_libs = ['ncurses']
             exts.append( Extension('_curses', ['_cursesmodule.c'],
                                    libraries = curses_libs) )
-        elif (self.compiler.find_library_file(lib_dirs, 'curses')
+        elif 0 and (self.compiler.find_library_file(lib_dirs, 'curses')
               and platform != 'darwin'):
                 # OSX has an old Berkeley curses, not good enough for
                 # the _curses module.
@@ -730,21 +730,21 @@
         else:
             xmlbo = "4321"
         expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
-        exts.append(Extension('pyexpat',
-                              sources = [
-            'pyexpat.c',
-            'expat/xmlparse.c',
-            'expat/xmlrole.c',
-            'expat/xmltok.c',
-            ],
-                              define_macros = [
-            ('XML_NS', '1'),
-            ('XML_DTD', '1'),
-            ('BYTEORDER', xmlbo),
-            ('XML_CONTEXT_BYTES','1024'),
-            ],
-                              include_dirs = [expatinc]
-                               ))
+#        exts.append(Extension('pyexpat',
+#                              sources = [
+#            'pyexpat.c',
+#            'expat/xmlparse.c',
+#            'expat/xmlrole.c',
+#            'expat/xmltok.c',
+#            ],
+#                              define_macros = [
+#            ('XML_NS', '1'),
+#            ('XML_DTD', '1'),
+#            ('BYTEORDER', xmlbo),
+#            ('XML_CONTEXT_BYTES','1024'),
+#            ],
+#                              include_dirs = [expatinc]
+#                               ))
 
         # Dynamic loading module
         if sys.maxint == 0x7fffffff:
@@ -867,7 +867,7 @@
         self.extensions.extend(exts)
 
         # Call the method for detecting whether _tkinter can be compiled
-        self.detect_tkinter(inc_dirs, lib_dirs)
+#        self.detect_tkinter(inc_dirs, lib_dirs)
 
     def detect_tkinter_darwin(self, inc_dirs, lib_dirs):
         # The _tkinter module, using frameworks. Since frameworks are quite
@@ -1128,7 +1128,9 @@
           ext_modules=[Extension('struct', ['structmodule.c'])],
 
           # Scripts to install
-          scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle']
+          scripts = ['Tools/scripts/pydoc2.3',
+#'Tools/scripts/idle'
+	  ]
         )
 
 # --install-platlib