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 94b5fa1e90
Fixes #264
This commit is contained in:
parent
fcacc3c2be
commit
c8da53a81f
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue