From f374c0bc4af3a2051807b1567fe4dddacd645213 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Tue, 23 May 2017 20:35:28 -0700 Subject: [PATCH] deploy-ng: Fix for missing modules when building on Ubuntu (and probably other distros) Ubuntu has different builtins than manylinux1, and we need to make sure we still copy shared objects when the host marks a module as builtin and manylinux1 has an so for the module. --- direct/src/showutil/dist.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 306e827cca..698d4969e2 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -169,7 +169,12 @@ 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 + for mod in freezer_modules: + if mod in whl_modules: + freezer_extras.add((mod, None)) + # Copy any shared objects we need for module, source_path in freezer_extras: if source_path is not None: # Rename panda3d/core.pyd to panda3d.core.pyd