From 488099c948c8649e8ebd522189f4abeba01b6e2e Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Wed, 16 Apr 2008 21:43:25 +0100 Subject: [PATCH] Add WITHOUT_NLS support. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 09cf0664..a611dd46 100755 --- a/setup.py +++ b/setup.py @@ -20,12 +20,13 @@ APP_VERSION = import_terminator().APP_VERSION PO_DIR = 'po' MO_DIR = os.path.join('build', 'mo') +WITHOUT_NLS = sys.platform == 'win32' or os.environ.has_key("WITHOUT_NLS") class BuildData(build): def run (self): build.run (self) - if sys.platform == 'win32': + if WITHOUT_NLS: return for po in glob.glob (os.path.join (PO_DIR, '*.po')): @@ -53,7 +54,7 @@ class InstallData(install_data): data_files = [] # Don't install language files on win32 - if sys.platform == 'win32': + if WITHOUT_NLS: return data_files for mo in glob.glob (os.path.join (MO_DIR, '*.mo')):