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 479eced was
46e7e82,
checked in by Jae Cho <jhjcho@…>, 15 years ago
|
updated mac setup file
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | """ |
---|
2 | This is a setup.py script partly generated by py2applet |
---|
3 | |
---|
4 | Usage: |
---|
5 | python setup.py py2app |
---|
6 | """ |
---|
7 | from setuptools import setup |
---|
8 | import periodictable.xsf |
---|
9 | import DataLoader.readers |
---|
10 | from distutils.sysconfig import get_python_lib |
---|
11 | import os |
---|
12 | |
---|
13 | DATA_FILES = [] |
---|
14 | RESOURCES_FILES = [] |
---|
15 | |
---|
16 | #Periodictable data file |
---|
17 | DATA_FILES = periodictable.data_files() |
---|
18 | |
---|
19 | #invariant and calculator help doc |
---|
20 | import sans.perspectives.calculator as calculator |
---|
21 | DATA_FILES += calculator.data_files() |
---|
22 | import sans.perspectives.invariant as invariant |
---|
23 | DATA_FILES += invariant.data_files() |
---|
24 | |
---|
25 | #CANSAxml reader data files |
---|
26 | RESOURCES_FILES.append(os.path.join(DataLoader.readers.get_data_path(),'defaults.xml')) |
---|
27 | |
---|
28 | APP = ['sansview.py'] |
---|
29 | DATA_FILES += ['images','test','plugins','media'] |
---|
30 | OPTIONS = {'argv_emulation': True, |
---|
31 | 'packages': ['lxml','periodictable'], |
---|
32 | 'iconfile': 'images/ball.icns', |
---|
33 | 'frameworks':['/usr/local/lib/libxml2.2.dylib'], ##This dir path could be /usr/lib/yourlibxmlfile depending on the system. |
---|
34 | 'resources': RESOURCES_FILES |
---|
35 | } |
---|
36 | |
---|
37 | setup( |
---|
38 | app=APP, |
---|
39 | data_files=DATA_FILES, |
---|
40 | include_package_data= True, |
---|
41 | options={'py2app': OPTIONS}, |
---|
42 | setup_requires=['py2app'], |
---|
43 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.