@@ -1309,6 +1309,7 @@ class db_found(Exception): pass
13091309 define_macros = []
13101310 expat_lib = ['expat' ]
13111311 expat_sources = []
1312+ expat_depends = []
13121313 else :
13131314 expat_inc = [os .path .join (os .getcwd (), srcdir , 'Modules' , 'expat' )]
13141315 define_macros = [
@@ -1318,12 +1319,25 @@ class db_found(Exception): pass
13181319 expat_sources = ['expat/xmlparse.c' ,
13191320 'expat/xmlrole.c' ,
13201321 'expat/xmltok.c' ]
1322+ expat_depends = ['expat/ascii.h' ,
1323+ 'expat/asciitab.h' ,
1324+ 'expat/expat.h' ,
1325+ 'expat/expat_config.h' ,
1326+ 'expat/expat_external.h' ,
1327+ 'expat/internal.h' ,
1328+ 'expat/latin1tab.h' ,
1329+ 'expat/utf8tab.h' ,
1330+ 'expat/xmlrole.h' ,
1331+ 'expat/xmltok.h' ,
1332+ 'expat/xmltok_impl.h'
1333+ ]
13211334
13221335 exts .append (Extension ('pyexpat' ,
13231336 define_macros = define_macros ,
13241337 include_dirs = expat_inc ,
13251338 libraries = expat_lib ,
1326- sources = ['pyexpat.c' ] + expat_sources
1339+ sources = ['pyexpat.c' ] + expat_sources ,
1340+ depends = expat_depends ,
13271341 ))
13281342
13291343 # Fredrik Lundh's cElementTree module. Note that this also
@@ -1336,6 +1350,8 @@ class db_found(Exception): pass
13361350 include_dirs = expat_inc ,
13371351 libraries = expat_lib ,
13381352 sources = ['_elementtree.c' ],
1353+ depends = ['pyexpat.c' ] + expat_sources +
1354+ expat_depends ,
13391355 ))
13401356 else :
13411357 missing .append ('_elementtree' )
0 commit comments