From 7c40b2babe3e7b787cf0a42422a1e67c66e8a164 Mon Sep 17 00:00:00 2001 From: "Robin Dunn (cyclops)" Date: Mon, 28 Jan 2013 16:59:23 +0000 Subject: Also copy the DLLs in the lib dir if there are any, that's where qt-mobility puts its DLLs --- setup.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index aff9fa63b..72662d6f5 100644 --- a/setup.py +++ b/setup.py @@ -159,7 +159,7 @@ Use --list-versions option to get list of available versions""" % OPTION_VERSION __version__ = OPTION_VERSION # Initialize, pull and checkout submodules -if os.path.isdir(".git") and not OPTION_IGNOREGIT: +if os.path.isdir(".git") and not OPTION_IGNOREGIT and not OPTION_ONLYPACKAGE: print("Initializing submodules for PySide version %s" % __version__) git_update_cmd = ["git", "submodule", "update", "--init"] if run_process(git_update_cmd) != 0: @@ -769,6 +769,21 @@ class pyside_build(_build): copydir("{qt_bin_dir}", "{dist_dir}/PySide", filter=["*d4.dll"], recursive=False, logger=log, vars=vars) + + # I think these are the qt-mobility DLLs, at least some are, + # so let's copy them too + # /lib/*.dll -> /PySide + copydir("{qt_lib_dir}", "{setup_dir}/PySide", + filter=["*.dll"], + ignore=["*d?.dll"], + recursive=False, logger=log, vars=vars) + if self.debug: + # /lib/*d4.dll -> /PySide + copydir("{qt_lib_dir}", "{setup_dir}/PySide", + filter=["*d?.dll"], + recursive=False, logger=log, vars=vars) + + # /plugins/* -> /PySide/plugins copydir("{qt_plugins_dir}", "{dist_dir}/PySide/plugins", filter=["*.dll"], @@ -850,4 +865,4 @@ setup( 'bdist_egg': pyside_bdist_egg, 'install': pyside_install, }, -) \ No newline at end of file +) -- cgit v1.2.3