File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -235,17 +235,19 @@ def package(self, ignore=[]):
235
235
LOG .info ('Copying lib64 site packages' )
236
236
utils .copy_tree (lib64_path , package )
237
237
238
+ # Append the temp workspace to the ignore list:
239
+ ignore += ["^%s/*" % TEMP_WORKSPACE_NAME ]
240
+ utils .copy_tree (self ._path , package , ignore )
241
+
242
+ # Add extra files
238
243
for p in self ._extra_files :
239
244
LOG .info ('Copying extra %s into package' % p )
240
245
ignore += ["%s" % p ]
241
246
if os .path .isdir (p ):
242
- utils .copy_tree (p , package , include_parent = True )
247
+ utils .copy_tree (p , package , ignore = ignore , include_parent = True )
243
248
else :
244
249
shutil .copy (p , package )
245
250
246
- # Append the temp workspace to the ignore list:
247
- ignore += ["^%s/*" % TEMP_WORKSPACE_NAME ]
248
- utils .copy_tree (self ._path , package , ignore )
249
251
self ._create_zip (package )
250
252
251
253
def _create_zip (self , src ):
You can’t perform that action at this time.
0 commit comments