aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-03-27 14:48:04 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-04-03 08:34:23 +0000
commit4ff4a88729f376aef8dc8657c76afd895b2b260e (patch)
tree9ae522d377dc3db878f8d78714949be460a4eaf6 /setup.py
parent4799a56f4ded79257a2cdabe17ce8cd0a674af38 (diff)
setup.py: Do not deploy *.pdb files of the QML plugins
Exclude *.pdb files from the initial QML directory copy pass. Change-Id: Id002ea7a3fb89987f069f584c1d2c54ee5c9178e Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index ffb561c9..73d06fa9 100644
--- a/setup.py
+++ b/setup.py
@@ -1635,8 +1635,9 @@ class pyside_build(_build):
# <qt>/plugins/* -> <setup>/PySide2/plugins
plugin_dll_patterns = ["*{}.dll"]
+ pdb_pattern = "*{}.pdb"
if copy_pdbs:
- plugin_dll_patterns += ["*{}.pdb"]
+ plugin_dll_patterns += [pdb_pattern]
plugin_dll_filter = functools.partial(qt_build_config_filter, plugin_dll_patterns)
copydir("{qt_plugins_dir}", "{pyside_package_dir}/PySide2/plugins",
file_filter_function=plugin_dll_filter,
@@ -1650,9 +1651,11 @@ class pyside_build(_build):
# <qt>/qml/* -> <setup>/PySide2/qml
qml_dll_patterns = ["*{}.dll"]
+ qml_ignore_patterns = qml_dll_patterns + [pdb_pattern]
+ # Remove the "{}" from the patterns
+ qml_ignore = [a.format('') for a in qml_ignore_patterns]
if copy_pdbs:
- qml_dll_patterns += ["*{}.pdb"]
- qml_ignore = [a.format('') for a in qml_dll_patterns]
+ qml_dll_patterns += [pdb_pattern]
qml_dll_filter = functools.partial(qt_build_config_filter, qml_dll_patterns)
copydir("{qt_qml_dir}", "{pyside_package_dir}/PySide2/qml",
ignore=qml_ignore,