File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 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=[]):
235235 LOG .info ('Copying lib64 site packages' )
236236 utils .copy_tree (lib64_path , package )
237237
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
238243 for p in self ._extra_files :
239244 LOG .info ('Copying extra %s into package' % p )
240245 ignore += ["%s" % p ]
241246 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 )
243248 else :
244249 shutil .copy (p , package )
245250
246- # Append the temp workspace to the ignore list:
247- ignore += ["^%s/*" % TEMP_WORKSPACE_NAME ]
248- utils .copy_tree (self ._path , package , ignore )
249251 self ._create_zip (package )
250252
251253 def _create_zip (self , src ):
You can’t perform that action at this time.
0 commit comments