40
40
}
41
41
42
42
EXCLUDE_FILE_FROM_LIBRARY = {
43
- 'bdist_wininst.py' ,
43
+ # 'bdist_wininst.py',
44
44
}
45
45
46
46
EXCLUDE_FILE_FROM_LIBS = {
@@ -107,6 +107,13 @@ def include_in_lib(p):
107
107
suffix = p .suffix .lower ()
108
108
return suffix not in {'.pyc' , '.pyo' , '.exe' }
109
109
110
+ def include_in_libs (p ):
111
+ # if is_debug(p):
112
+ # print ('include_in_libs: {} is debug'.format(p))
113
+ # return False
114
+
115
+ return p .stem .lower () not in EXCLUDE_FILE_FROM_LIBS
116
+
110
117
def include_in_tools (p ):
111
118
if p .is_dir () and p .name .lower () in {'scripts' , 'i18n' , 'pynche' , 'demo' , 'parser' }:
112
119
return True
@@ -122,7 +129,10 @@ def include_in_tools(p):
122
129
('/' , '$source' , '{}.dll' .format (BASE_NAME ), is_not_debug ),
123
130
('DLLs/' , '$source' , '*.pyd' , is_not_debug ),
124
131
('DLLs/' , '$source' , '*.dll' , is_not_python ),
132
+ ('include/' , 'include' , '*.h' , None ),
133
+ ('include/' , 'PC' , 'pyconfig.h' , None ),
125
134
('Lib/' , 'Lib' , '**/*' , include_in_lib ),
135
+ ('libs/' , '$source' , '*.lib' , include_in_libs ),
126
136
('Tools/' , 'Tools' , '**/*' , include_in_tools ),
127
137
]
128
138
@@ -131,9 +141,12 @@ def include_in_tools(p):
131
141
('/' , '$source' , 'pythonw_d.exe' , is_debug ),
132
142
('/' , '$source' , 'python{}_d.dll' .format (sys .version_info .major ), is_debug ),
133
143
('/' , '$source' , '{}_d.dll' .format (BASE_NAME ), is_debug ),
144
+ ('include/' , 'include' , '*.h' , None ),
145
+ ('include/' , 'PC' , 'pyconfig.h' , None ),
134
146
('DLLs/' , '$source' , '*.pyd' , is_debug ),
135
147
('DLLs/' , '$source' , '*.dll' , is_not_python ),
136
148
('Lib/' , 'Lib' , '**/*' , include_in_lib ),
149
+ ('libs/' , '$source' , '*.lib' , include_in_libs ),
137
150
('Tools/' , 'Tools' , '**/*' , include_in_tools ),
138
151
]
139
152
0 commit comments