Changeset a8d882a in sasview
- Timestamp:
- Feb 20, 2015 3:40:19 AM (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:
- 59b1b92
- Parents:
- 0721c3d
- git-author:
- Peter Parker <peter.parker@…> (02/20/15 03:39:49)
- git-committer:
- Peter Parker <peter.parker@…> (02/20/15 03:40:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/setup_mac.py
r3a39c2e ra8d882a 20 20 import sys 21 21 import platform 22 23 from distutils.util import get_platform 24 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 25 platform = '%s-%s'%(get_platform(),sys.version[:3]) 26 build_path = os.path.join(root, 'build','lib.'+platform) 27 sys.path.insert(0, build_path) 22 28 23 29 ICON = local_config.SetupIconFile_mac … … 58 64 if os.path.isfile("BUILD_NUMBER"): 59 65 DATA_FILES.append("BUILD_NUMBER") 66 67 # See if the documentation has been built, and if so include it. 68 doc_path = os.path.join(build_path, "doc") 69 if os.path.exists(doc_path): 70 for dirpath, dirnames, filenames in os.walk(doc_path): 71 for filename in filenames: 72 sub_dir = os.path.join("doc", os.path.relpath(dirpath, doc_path)) 73 data_files.append((sub_dir, [os.path.join(dirpath, filename)])) 74 else: 75 raise Exception("You must first build the documentation before creating an installer.") 60 76 61 77 # locate file extensions
Note: See TracChangeset
for help on using the changeset viewer.