forked from HDFGroup/hdf-compass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (43 loc) · 2.11 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# This file is part of the HDF Compass Viewer. The full HDF Compass #
# copyright notice, including terms governing use, modification, and #
# terms governing use, modification, and redistribution, is contained in #
# the file COPYING, which can be found at the root of the source code #
# distribution tree. If you do not have access to this file, you may #
# request a copy from help@hdfgroup.org. #
##############################################################################
"""
Setup script for HDFCompass on Mac OS X.
Usage:
python setup.py py2app
The output is HDFCompass.app, in the dist/ folder.
After running setp.py and verifying the install image, run:
appdmg spec.json HDFCompass.dmg
To create dmg install file. The appdmg utility can be installed from npm.
PyInstaller, for Windows and Linux distribution, does not use setup.py.
"""
from setuptools import setup
APP = ['HDFCompass.py']
DATA_FILES = []
PLIST = { "CFBundleDocumentTypes": [ { "CFBundleTypeExtensions": ["hdf5","h5"],
"CFBundleTypeName": "HDF5 Data File",
"CFBundleTypeRole": "Viewer"} ],
"CFBundleIdentifer": "org.hdfgroup.compass",
"CFBundleDisplayName": "HDFCompass",
"CFBundleVersion": "0.5.0" }
# ARGV emulation interacts badly with wxPython on Mac... it "eats" events
# when the program starts up and causes windows not to be displayed.
OPTIONS = { 'argv_emulation': False,
'excludes': ['scipy', 'PyQt4', 'mpi4py'],
'matplotlib_backends': ['wxagg'],
'iconfile': 'compass.icns',
'plist': PLIST }
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)