Changeset a0f4768 in sasview


Ignore:
Timestamp:
Jan 10, 2018 8:39:09 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
b6b81a3
Parents:
a64f8f4
Message:

Added a conditional for 32-bit installers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installers/installer_generator.py

    ra64f8f4 ra0f4768  
    99import sys 
    1010import string 
     11 
     12is_64bit = sys.maxsize > 2**32 
    1113 
    1214root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
     
    344346    TEMPLATE += "AppSupportURL=%s\n" % str(AppSupportURL) 
    345347    TEMPLATE += "AppUpdatesURL=%s \n" % str(AppUpdatesURL) 
    346     TEMPLATE += "ArchitecturesInstallIn64BitMode=%s \n" % str(ArchitecturesInstallIn64BitMode) 
     348    if is_64bit: 
     349        TEMPLATE += "ArchitecturesInstallIn64BitMode=%s \n" % str(ArchitecturesInstallIn64BitMode) 
    347350    TEMPLATE += "ChangesEnvironment=%s \n" % str(ChangesEnvironment) 
    348351    TEMPLATE += "DefaultDirName=%s\n" % str(DefaultDirName) 
Note: See TracChangeset for help on using the changeset viewer.