From 12ccb3d404bfab49b0e2d8473a733e088d818168 Mon Sep 17 00:00:00 2001 From: Lawrence Hudson Date: Thu, 28 Apr 2016 13:56:06 +0100 Subject: [PATCH] Tweaks to Windows build --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index c451faa..cc7d90a 100755 --- a/setup.py +++ b/setup.py @@ -47,18 +47,19 @@ } for script in SCRIPTS ], + # Strings in braces within 'include_files' tuples expanded in cx_setup 'include_files': [ ('{site_packages}/numpy', 'numpy'), ('{site_packages}/scipy', 'scipy'), ('{site_packages}/sklearn', 'sklearn'), ('{environment_root}/Library/bin/mkl_core.dll', 'mkl_core.dll'), - ('{environment_root}/Library/bin/msvcr90.dll', 'msvcr90.dll'), ('{environment_root}/Library/bin/libiomp5md.dll', 'libiomp5md.dll'), ], 'extra_packages': ['win32com.gen_py'], 'excludes': [ - 'Tkinter', 'ttk', 'Tkconstants', 'tcl', - 'future.moves' # Errors from urllib otherwise + 'Tkinter', 'ttk', 'Tkconstants', 'tcl', '_ssl', + 'future.moves', # Errors from urllib otherwise + 'PySide.QtNetwork', ] } } @@ -106,6 +107,8 @@ def cx_setup(): 'packages': setup_data['packages'] + setup_data['win32']['extra_packages'], 'excludes': setup_data['win32']['excludes'], 'include_files': include_files, + 'include_msvcr': True, + 'optimize': 2, }, 'bdist_msi': { 'upgrade_code': '{fe2ed61d-cd5e-45bb-9d16-146f725e522f}'