From 15a8919455ed58c1c318770ba60feb2b7a000646 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 24 May 2018 11:26:34 +0200 Subject: Adjust wheel names when building with limited api Wheel has poor support for naming wheel packages that were built with limited API enabled. We need to override some of bdist_wheel's methods to generate a correct name and correct metadata. Move the pyside_bdist_wheel class into a separate file, and implement the necessary logic. Change-Id: I23d814cbb794052fb18a1e018f7b767c60945254 Reviewed-by: Friedemann Kleint Reviewed-by: Cristian Maureira-Fredes --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 60b86adcc..ca26084d6 100644 --- a/setup.py +++ b/setup.py @@ -219,7 +219,7 @@ this_file = os.path.abspath(this_file) if os.path.dirname(this_file): os.chdir(os.path.dirname(this_file)) -from build_scripts.main import get_package_version +from build_scripts.main import get_package_version, get_setuptools_extension_modules from build_scripts.main import pyside_package_dir_name from build_scripts.main import cmd_class_dict from build_scripts.main import README, CHANGES @@ -229,6 +229,8 @@ from setuptools import setup, Extension # used as a value source. __version__ = get_package_version() +extension_modules = get_setuptools_extension_modules() + setup( name = "PySide2", version = get_package_version(), @@ -286,6 +288,6 @@ setup( # are overriding the build command to do it using cmake) so things # like bdist_egg will know that there are extension modules and # will name the dist with the full platform info. - ext_modules = [Extension('QtCore', [])], + ext_modules = extension_modules, ext_package = 'PySide2', ) -- cgit v1.2.3