Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47d3a7a

Browse files
committed
Add dependencies on socketmodule.h.
1 parent 74a3bec commit 47d3a7a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ def detect_modules(self):
271271
exts.append( Extension('_weakref', ['_weakref.c']) )
272272
exts.append( Extension('xreadlines', ['xreadlinesmodule.c']) )
273273

274+
exts.append( Extension("bits", ["bits.c"]) )
275+
274276
# array objects
275277
exts.append( Extension('array', ['arraymodule.c']) )
276278
# complex math library functions
@@ -385,7 +387,8 @@ def detect_modules(self):
385387
exts.append( Extension('crypt', ['cryptmodule.c'], libraries=libs) )
386388

387389
# socket(2)
388-
exts.append( Extension('_socket', ['socketmodule.c']) )
390+
exts.append( Extension('_socket', ['socketmodule.c'],
391+
depends = ['Modules/socketmodule.h']) )
389392
# Detect SSL support for the socket module (via _ssl)
390393
ssl_incs = find_file('openssl/ssl.h', inc_dirs,
391394
['/usr/local/ssl/include',
@@ -402,7 +405,8 @@ def detect_modules(self):
402405
exts.append( Extension('_ssl', ['_ssl.c'],
403406
include_dirs = ssl_incs,
404407
library_dirs = ssl_libs,
405-
libraries = ['ssl', 'crypto']) )
408+
libraries = ['ssl', 'crypto'],
409+
depends = ['Modules/socketmodule.h']), )
406410

407411
# Modules that provide persistent dictionary-like semantics. You will
408412
# probably want to arrange for at least one of them to be available on

0 commit comments

Comments
 (0)