mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
deploy-ng: Remove Python version string from the filename of copied extension modules
This commit is contained in:
parent
2923af7d44
commit
74a7d4ee48
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user