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
|
$NetBSD: patch-ac,v 1.2 2002/09/04 14:25:18 drochner Exp $
--- setup.py.orig Thu Dec 27 22:51:02 2001
+++ setup.py Wed Aug 28 16:15:08 2002
@@ -145,12 +145,6 @@
return platform
def detect_modules(self):
- # Ensure that /usr/local is always used
- if '/usr/local/lib' not in self.compiler.library_dirs:
- self.compiler.library_dirs.insert(0, '/usr/local/lib')
- if '/usr/local/include' not in self.compiler.include_dirs:
- self.compiler.include_dirs.insert(0, '/usr/local/include' )
-
# lib_dirs and inc_dirs are used to search for files;
# if a file is found in one of those directories, it can
# be assumed that no additional -I,-L directives are needed.
@@ -265,13 +259,13 @@
# These represent audio samples or images as strings:
# Disabled on 64-bit platforms
- if sys.maxint != 9223372036854775807L:
+# if sys.maxint != 9223372036854775807L:
# Operations on audio samples
- exts.append( Extension('audioop', ['audioop.c']) )
+# exts.append( Extension('audioop', ['audioop.c']) )
# Operations on images
- exts.append( Extension('imageop', ['imageop.c']) )
+# exts.append( Extension('imageop', ['imageop.c']) )
# Read SGI RGB image files (but coded portably)
- exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
+# exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
# readline
if self.compiler.find_library_file(lib_dirs, 'readline'):
@@ -296,14 +290,10 @@
# socket(2)
# Detect SSL support for the socket module
ssl_incs = find_file('openssl/ssl.h', inc_dirs,
- ['/usr/local/ssl/include',
- '/usr/contrib/ssl/include/'
- ]
+ []
)
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):
@@ -408,8 +398,8 @@
if (self.compiler.find_library_file(lib_dirs, 'ncurses')):
curses_libs = ['ncurses']
- exts.append( Extension('_curses', ['_cursesmodule.c'],
- libraries = curses_libs) )
+# exts.append( Extension('_curses', ['_cursesmodule.c'],
+# libraries = curses_libs) )
elif (self.compiler.find_library_file(lib_dirs, 'curses')) and platform[:6] != 'darwin':
# OSX has an old Berkeley curses, not good enough for the _curses module.
if (self.compiler.find_library_file(lib_dirs, 'terminfo')):
@@ -417,8 +407,8 @@
else:
curses_libs = ['curses', 'termcap']
- exts.append( Extension('_curses', ['_cursesmodule.c'],
- libraries = curses_libs) )
+# exts.append( Extension('_curses', ['_cursesmodule.c'],
+# libraries = curses_libs) )
# If the curses module is enabled, check for the panel module
if (os.path.exists('Modules/_curses_panel.c') and
@@ -609,7 +599,7 @@
ext_modules=[Extension('struct', ['structmodule.c'])],
# Scripts to install
- scripts = ['Tools/scripts/pydoc']
+ scripts = ['Tools/scripts/pydoc2p1']
)
# --install-platlib
|