Explorar el Código

deploy-ng: fix module duplication in build dir (observed on macOS)

rdb hace 8 años
padre
commit
4e1fc27d6b
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      direct/src/showutil/dist.py

+ 6 - 1
direct/src/showutil/dist.py

@@ -340,7 +340,11 @@ class build_apps(distutils.core.Command):
                 whl_modules_ext = '.'.join(whl_modules[0].split('.')[1:])
             whl_modules = [i.split('.')[0] for i in whl_modules]
 
-        # Make sure to copy any builtins that have shared objects in the deploy libs
+        # Make sure to copy any builtins that have shared objects in the
+        # deploy libs, assuming they are not already in freezer_extras.
+        for mod, source_path in freezer_extras:
+            freezer_modules.discard(mod)
+
         for mod in freezer_modules:
             if mod in whl_modules:
                 freezer_extras.add((mod, None))
@@ -374,6 +378,7 @@ class build_apps(distutils.core.Command):
                 if module in whl_modules:
                     source_path = os.path.join(p3dwhlfn, 'deploy_libs/{}.{}'.format(module, whl_modules_ext))#'{0}/deploy_libs/{1}.{2}'.format(p3dwhlfn, module, whl_modules_ext)
                     basename = os.path.basename(source_path)
+                    #XXX should we remove python version string here too?
                 else:
                     continue