Changeset c971c98 in sasview
- Timestamp:
- Mar 31, 2015 4:49:08 PM (10 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- c4a7660
- Parents:
- acf8e4a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/setup_exe.py
r2eeca83 rc971c98 14 14 # See for example the 'images' directory below. 15 15 16 import os , sys17 import platform16 import os 17 import sys 18 18 19 19 # put the build directory at the front of the path … … 22 22 from distutils.util import get_platform 23 23 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 24 platform = '%s-%s'%(get_platform(), sys.version[:3])25 build_path = os.path.join(root, 'build', 'lib.'+platform)24 platform = '%s-%s'%(get_platform(), sys.version[:3]) 25 build_path = os.path.join(root, 'build', 'lib.'+platform) 26 26 sys.path.insert(0, build_path) 27 27 … … 62 62 except ImportError: 63 63 import modulefinder 64 import win32com , sys64 import win32com 65 65 for p in win32com.__path__[1:]: 66 66 modulefinder.AddPackagePath(win32_folder, p) … … 211 211 manifest = manifest_for_python25 212 212 py26MSdll = None 213 213 214 214 215 class Target: 215 216 def __init__(self, **kw): … … 260 261 # Copy the settings file for the sas.dataloader file extension associations 261 262 import sas.dataloader.readers 262 f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json')263 f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json') 263 264 if os.path.isfile(f): 264 265 data_files.append(('.', [f])) … … 276 277 277 278 if os.path.isfile("BUILD_NUMBER"): 278 data_files.append(('.', ["BUILD_NUMBER"]))279 data_files.append(('.', ["BUILD_NUMBER"])) 279 280 280 281 # Copying the images directory to the distribution directory. … … 303 304 raise Exception("You must first build the documentation before creating an installer.") 304 305 305 if py26MSdll !=None:306 if py26MSdll is not None: 306 307 # install the MSVC 9 runtime dll's into the application folder 307 308 data_files.append(("Microsoft.VC90.CRT", py26MSdll)) 308 if py26MSdll_x86 !=None:309 if py26MSdll_x86 is not None: 309 310 # install the MSVC 9 runtime dll's into the application folder 310 311 data_files.append(("Microsoft.VC90.CRT", py26MSdll_x86)) … … 332 333 'reportlab.platypus', 333 334 ]) 335 packages.append('periodictable.core') # not found automatically 334 336 #packages.append('IPython') 335 includes = ['site', 'lxml._elementpath', 'lxml.etree']337 includes = ['site', 'lxml._elementpath', 'lxml.etree'] 336 338 337 339 # Exclude packages that are not needed but are often found on build systems … … 357 359 script = 'sasview.py', 358 360 icon_resources = [(1, os.path.join(images_dir, "ball.ico"))], 359 other_resources = [(24, 1,manifest)],361 other_resources = [(24, 1, manifest)], 360 362 dest_base = "SasView" 361 363 ) … … 376 378 'py2exe': { 377 379 'dll_excludes': dll_excludes, 378 'packages' 379 'includes': includes,380 'excludes': excludes,380 'packages': packages, 381 'includes': includes, 382 'excludes': excludes, 381 383 "compressed": 1, 382 384 "optimize": 0, 383 "bundle_files": bundle_option,385 "bundle_files": bundle_option, 384 386 }, 385 387 }, 386 388 data_files=data_files, 387 388 389 ) 389 390
Note: See TracChangeset
for help on using the changeset viewer.