From c8da53a81f9706ba975a5e15dedb9ad5c55c7003 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 1 Mar 2018 22:02:58 +0100 Subject: [PATCH] deploy-ng: fix regression with builtin modules not being added This happens only when the system Python has the module built-in (eg. on Ubuntu where most modules are builtin) but deploy-ng doesn't. Regression was introduced by 94b5fa1e90c6746b587bcf1796a16b6df61886c1 Fixes #264 --- direct/src/showutil/dist.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 95a0ccc640..24a953afd2 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -350,8 +350,9 @@ class build_apps(distutils.core.Command): continue base = os.path.basename(i) - whl_modules.append(base) - whl_modules_ext = base.partition('.')[2] + module, _, ext = base.partition('.') + whl_modules.append(module) + whl_modules_ext = ext # Make sure to copy any builtins that have shared objects in the # deploy libs, assuming they are not already in freezer_extras.