source: sasview/sansview/setup_mac.py @ 425ef040

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 425ef040 was 01255b5, checked in by Jae Cho <jhjcho@…>, 15 years ago

included SLD calculator for py2app

  • Property mode set to 100644
File size: 862 bytes
Line 
1"""
2This is a setup.py script generated by py2applet
3
4Usage:
5    python setup.py py2app
6"""
7from setuptools import setup
8import periodictable.xsf
9import DataLoader.readers 
10from distutils.sysconfig import get_python_lib
11import os
12
13DATA_FILES = []
14
15#Periodictable data file
16DATA_FILES = periodictable.xsf.setup_data_files()
17
18#xml data files
19
20f = os.path.join(DataLoader.readers.get_data_path(),'default.xml')
21if os.path.isfile(f):
22    DAT_FILES.append(('.',[f]))
23
24APP = ['sansview.py']
25DATA_FILES = ['images','test','plugins','doc']
26OPTIONS = {'argv_emulation': True,'packages': ['lxml','periodictable'],
27           'frameworks':['/usr/lib/libxml2.2.dylib'],
28           #'plist': dict(LSPrefersPPC=True)
29           }
30
31setup(
32    app=APP,
33    data_files=DATA_FILES,
34    include_package_data= True,
35    options={'py2app': OPTIONS},
36    setup_requires=['py2app'],
37)
Note: See TracBrowser for help on using the repository browser.