aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/wheel_files.py
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2023-03-06 13:42:27 +0100
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2023-03-21 13:49:42 +0100
commitffb87075e3c4ea4b0a2dd15321af8c1921e33164 (patch)
treede244668134396b72ca56accbe060298edc4a337 /build_scripts/wheel_files.py
parentc38b238f8633f1806ee837f839afcb184455ca44 (diff)
build: remove examples from wheels and installation
To reduce the size and cluttering of wheels and installations the examples are not including any longer. The recommended way to get examples now is to download them directly from the Example Gallery in the documentation page. The option no-examples was removed. [ChangeLog][pyside6] Examples are not included in the wheels anymore and the option no-example was removed. Change-Id: I94fb24f9ffd6c55e2762e7c2e380b0f0ffe0bf61 Fixes: PYSIDE-2247 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/wheel_files.py')
-rw-r--r--build_scripts/wheel_files.py21
1 files changed, 2 insertions, 19 deletions
diff --git a/build_scripts/wheel_files.py b/build_scripts/wheel_files.py
index 77dcdf523..148bca6df 100644
--- a/build_scripts/wheel_files.py
+++ b/build_scripts/wheel_files.py
@@ -25,7 +25,6 @@ class ModuleData:
include: List[str] = field(default_factory=list)
glue: List[str] = field(default_factory=list)
metatypes: List[str] = field(default_factory=list)
- examples: List[str] = field(default_factory=list)
plugins: List[str] = field(default_factory=list)
# For special cases when a file/directory doesn't fall into
@@ -55,7 +54,6 @@ class ModuleData:
self.glue.append(f"qt{_lo}.cpp")
if not len(self.metatypes):
self.metatypes.append(f"qt6{_lo}_relwithdebinfo_metatypes.json")
- self.examples.append(f"{_lo}")
# The PySide6 directory that gets packaged by the build_scripts
# 'prepare_packages()' has a certain structure that depends on
@@ -89,7 +87,6 @@ class ModuleData:
self.typesystems = [f"typesystems/{i}" for i in self.typesystems]
self.include = [f"include/{i}" for i in self.include]
self.glue = [f"glue/{i}" for i in self.glue]
- self.examples = [f"examples/{i}" for i in self.examples]
def macos_pyside_wrappers_lib(self, s):
if s.startswith("Qt"):
@@ -193,10 +190,10 @@ def wheel_files_pyside_addons() -> List[ModuleData]:
# Functions that hold the information of all the files that needs
# to be included for the module to work, including Qt libraries,
-# examples, typesystems, glue, etc.
+# typesystems, glue, etc.
def module_QtCore() -> ModuleData:
# QtCore
- data = ModuleData("Core", examples=["corelib"])
+ data = ModuleData("Core")
_typesystems = [
"common.xml",
@@ -225,12 +222,6 @@ def module_QtCore() -> ModuleData:
data.extra_files.append("Qt/libexec/rcc")
data.extra_files.append("Qt/libexec/qt.conf")
- data.examples.append("samplebinding")
- data.examples.append("utils")
-
- if sys.platform == "darwin":
- data.examples.append("macextras")
-
# *.py
data.extra_dirs.append("support")
@@ -273,8 +264,6 @@ def module_QtCore() -> ModuleData:
data.translations.append("qt_help_*")
data.translations.append("qt_*")
- data.extra_files.append("examples/examples.pyproject")
-
# plugins
data.plugins.append("platforms")
data.plugins.append("platformthemes")
@@ -339,10 +328,6 @@ def module_QtWidgets() -> ModuleData:
else:
data.extra_files.append("Qt/libexec/uic")
- data.examples.append("widgetbinding")
- data.examples.append("scriptableapplication")
- data.examples.append("external")
-
return data
@@ -476,7 +461,6 @@ def module_QtQml() -> ModuleData:
]
data.lib.append("libpyside6qml")
- data.examples.append("declarative")
data.plugins.append("qmltooling")
data.translations.append("qtdeclarative_*")
if sys.platform == "win32":
@@ -642,7 +626,6 @@ def module_Qt3DCore() -> ModuleData:
]
data.plugins.extend(_plugins)
- data.examples.append("3d")
return data