summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index dcca200..b380415 100644
--- a/setup.py
+++ b/setup.py
@@ -271,6 +271,8 @@ class PyBuildExt(build_ext):
exts.append( Extension('_weakref', ['_weakref.c']) )
exts.append( Extension('xreadlines', ['xreadlinesmodule.c']) )
+ exts.append( Extension("bits", ["bits.c"]) )
+
# array objects
exts.append( Extension('array', ['arraymodule.c']) )
# complex math library functions
@@ -385,7 +387,8 @@ class PyBuildExt(build_ext):
exts.append( Extension('crypt', ['cryptmodule.c'], libraries=libs) )
# socket(2)
- exts.append( Extension('_socket', ['socketmodule.c']) )
+ exts.append( Extension('_socket', ['socketmodule.c'],
+ depends = ['Modules/socketmodule.h']) )
# Detect SSL support for the socket module (via _ssl)
ssl_incs = find_file('openssl/ssl.h', inc_dirs,
['/usr/local/ssl/include',
@@ -402,7 +405,8 @@ class PyBuildExt(build_ext):
exts.append( Extension('_ssl', ['_ssl.c'],
include_dirs = ssl_incs,
library_dirs = ssl_libs,
- libraries = ['ssl', 'crypto']) )
+ libraries = ['ssl', 'crypto'],
+ depends = ['Modules/socketmodule.h']), )
# Modules that provide persistent dictionary-like semantics. You will
# probably want to arrange for at least one of them to be available on