From 74a7d4ee48bb1c7182d56516b61d57452988a9ab Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sun, 18 Dec 2016 15:02:49 -0800 Subject: [PATCH] deploy-ng: Remove Python version string from the filename of copied extension modules --- direct/src/showutil/dist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 5a4842b98b..a92f610df2 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -57,6 +57,9 @@ class build(distutils.command.build.build): if '.' in module: basename = module.rsplit('.', 1)[0] + '.' + basename + # Remove python version string + basename = '.'.join([i for i in basename.split('.') if not i.startswith('cpython-')]) + target_path = os.path.join(builddir, basename) distutils.file_util.copy_file(source_path, target_path)