deploy-ng: fix library suffix being stripped on FreeBSD

This commit is contained in:
rdb 2017-11-22 21:42:17 +01:00
parent 82ced9900e
commit 39dba025b7

View File

@ -261,8 +261,9 @@ class build_apps(distutils.core.Command):
# Remove python version string # Remove python version string
if sys.version_info >= (3, 0): if sys.version_info >= (3, 0):
parts = basename.split('.') parts = basename.split('.')
parts = parts[:-2] + parts[-1:] if len(parts) >= 3 and '-' in parts[-2]:
basename = '.'.join(parts) parts = parts[:-2] + parts[-1:]
basename = '.'.join(parts)
else: else:
# Builtin module, but might not be builtin in wheel libs, so double check # Builtin module, but might not be builtin in wheel libs, so double check
if module in whl_modules: if module in whl_modules: