Browse Source

Fix handling of JS files

Steven Silvester 7 năm trước cách đây
mục cha
commit
988ae3d9b2
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      setupbase.py

+ 1 - 2
setupbase.py

@@ -215,8 +215,7 @@ class custom_egg_info(egg_info):
 
     def run(self):
         folders = ['examples', 'packages', 'test', 'node_modules']
-        if not os.path.exists(pjoin(here, 'node_modules')):
-            folders.remove('node_modules')
+        folders = [f for f in folders if os.path.exists(pjoin(here, f))]
         tempdir = tempfile.mkdtemp()
         for folder in folders:
             shutil.move(pjoin(here, folder), tempdir)