From e98d311d4206cb458f956c32da1604d3c3c5d70a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 17 Apr 2014 03:12:02 +0000 Subject: [PATCH] Add the wx language catalogs to wx/locale in the wx package. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build.py | 8 +++++--- buildtools/config.py | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build.py b/build.py index 4f43c31c..0bfd1568 100755 --- a/build.py +++ b/build.py @@ -1236,13 +1236,15 @@ def cmd_build_py(options, args): runcmd(cmd) copyWxDlls(options) - + if isWindows or isDarwin: + cfg = Config() + cfg.build_locale_dir(opj(cfg.PKGDIR, 'locale')) + print("\n------------ BUILD FINISHED ------------") print("To use wxPython from the build folder (without installing):") print(" - Set your PYTHONPATH variable to %s." % phoenixDir()) if not isWindows: - print(" - You may also need to set your (DY)LD_LIBRARY_PATH to %s/lib, or wherever the wxWidgets libs have been installed." % BUILD_DIR) - #print(" - Run python demo/demo.py") + print(" - You may also need to set your (DY)LD_LIBRARY_PATH to %s/lib,\n or wherever the wxWidgets libs have been installed." % BUILD_DIR) print("") diff --git a/buildtools/config.py b/buildtools/config.py index b5f0304e..b17db23d 100644 --- a/buildtools/config.py +++ b/buildtools/config.py @@ -408,7 +408,7 @@ class Configuration(object): def build_locale_dir(self, destdir, verbose=1): - """Build a locale dir under the wxPython package for MSW""" + """Build a locale dir under the wxPython package. Used for MSW and OSX""" moFiles = glob.glob(opj(self.WXDIR, 'locale', '*.mo')) for src in moFiles: lang = os.path.splitext(os.path.basename(src))[0] @@ -875,4 +875,5 @@ def getSOName(filename): result = re.search('^\s+SONAME\s+(.+)$', output, re.MULTILINE) if result: return result.group(1) - return None \ No newline at end of file + return None +