diff --git a/README.md b/README.md index 956923c3..2fc33d98 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ setuptools install a script, called easy_install. You can find it in the python easy_install will automatically get the additional libraries that these packages need to work properly. Run the following command to quickly install and upgrade all packages and their dependencies: -easy_install -Z --upgrade six configobj goslate markdown future pocket suds requests oauthlib requests-oauthlib pypubsub pygeocoder arrow +easy_install -Z --upgrade six configobj goslate markdown future pocket suds requests oauthlib requests-oauthlib pypubsub pygeocoder arrow python-dateutil futures #### Other dependencies diff --git a/src/setup.py b/src/setup.py index fcbb0a0b..3cb97eec 100644 --- a/src/setup.py +++ b/src/setup.py @@ -25,6 +25,7 @@ import gettext import application import platform from glob import glob +import wx def get_architecture_files(): if platform.architecture()[0][:2] == "32": @@ -48,7 +49,7 @@ def get_data(): ("accessible_output2/lib", glob("accessible_output2/lib/*.dll")), ("keys/lib", glob("keys/lib/*.dll")), ("keymaps", glob("keymaps/*.keymap")), -]+get_sounds()+get_locales()+get_documentation()+sound_lib.find_datafiles()+accessible_output2.find_datafiles()+enchant.utils.win32_data_files()+get_architecture_files() +]+get_sounds()+get_locales()+get_documentation()+sound_lib.find_datafiles()+accessible_output2.find_datafiles()+enchant.utils.win32_data_files()+get_architecture_files()+wx_files() def get_documentation (): answer = [] @@ -79,6 +80,24 @@ def get_locales(): answer.append(new) return answer +def wx_files(): + wxDir=wx.__path__[0] + localeMoFiles=set() + for f in glob("locales/*/LC_MESSAGES"): + g=f.replace("locales", "locale") + wxMoFile=os.path.join(wxDir,g,"wxstd.mo") + if os.path.isfile(wxMoFile): + localeMoFiles.add((f,(wxMoFile,))) + lang=os.path.split(os.path.split(f)[0])[1] + if '_' in lang: + lang=lang.split('_')[0] + f=os.path.join('locale',lang,'lc_messages') + g=f.replace("locale", "locales") + wxMoFile=os.path.join(wxDir,f,"wxstd.mo") + if os.path.isfile(wxMoFile): + localeMoFiles.add((g,(wxMoFile,))) + return list(localeMoFiles) + if __name__ == '__main__': setup( name = application.name, @@ -92,7 +111,7 @@ options = { 'py2exe': { 'optimize':2, 'packages': ["pubsub", "pubsub.core", "pubsub.core.kwargs", "dbhash"], - 'dll_excludes': ["MPR.dll", "api-ms-win-core-apiquery-l1-1-0.dll", "api-ms-win-core-console-l1-1-0.dll", "api-ms-win-core-delayload-l1-1-1.dll", "api-ms-win-core-errorhandling-l1-1-1.dll", "api-ms-win-core-file-l1-2-0.dll", "api-ms-win-core-handle-l1-1-0.dll", "api-ms-win-core-heap-obsolete-l1-1-0.dll", "api-ms-win-core-libraryloader-l1-1-1.dll", "api-ms-win-core-localization-l1-2-0.dll", "api-ms-win-core-processenvironment-l1-2-0.dll", "api-ms-win-core-processthreads-l1-1-1.dll", "api-ms-win-core-profile-l1-1-0.dll", "api-ms-win-core-registry-l1-1-0.dll", "api-ms-win-core-synch-l1-2-0.dll", "api-ms-win-core-sysinfo-l1-2-0.dll", "api-ms-win-security-base-l1-2-0.dll", "api-ms-win-core-heap-l1-2-0.dll", "api-ms-win-core-interlocked-l1-2-0.dll", "api-ms-win-core-localization-obsolete-l1-1-0.dll", "api-ms-win-core-string-l1-1-0.dll", "api-ms-win-core-string-obsolete-l1-1-0.dll", "WLDAP32.dll", "MSVCP90.dll"], + 'dll_excludes': ["MPR.dll", "api-ms-win-core-apiquery-l1-1-0.dll", "api-ms-win-core-console-l1-1-0.dll", "api-ms-win-core-delayload-l1-1-1.dll", "api-ms-win-core-errorhandling-l1-1-1.dll", "api-ms-win-core-file-l1-2-0.dll", "api-ms-win-core-handle-l1-1-0.dll", "api-ms-win-core-heap-obsolete-l1-1-0.dll", "api-ms-win-core-libraryloader-l1-1-1.dll", "api-ms-win-core-localization-l1-2-0.dll", "api-ms-win-core-processenvironment-l1-2-0.dll", "api-ms-win-core-processthreads-l1-1-1.dll", "api-ms-win-core-profile-l1-1-0.dll", "api-ms-win-core-registry-l1-1-0.dll", "api-ms-win-core-synch-l1-2-0.dll", "api-ms-win-core-sysinfo-l1-2-0.dll", "api-ms-win-security-base-l1-2-0.dll", "api-ms-win-core-heap-l1-2-0.dll", "api-ms-win-core-interlocked-l1-2-0.dll", "api-ms-win-core-localization-obsolete-l1-1-0.dll", "api-ms-win-core-string-l1-1-0.dll", "api-ms-win-core-string-obsolete-l1-1-0.dll", "WLDAP32.dll", "MSVCP90.dll", "CRYPT32.dll", "mfc90.dll"], 'skip_archive': True }, },