-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_mac_bundle.py
63 lines (55 loc) · 2.31 KB
/
create_mac_bundle.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
53
54
55
56
57
58
59
60
61
62
63
# CVL Administrator - A GUI for launching/managing NeCTAR instances.
# Copyright (C) 2012 James Wettenhall, Monash University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Enquires: [email protected] or [email protected]
"""
A distutils script to make a standalone .app of the MASSIVE Launcher for
Mac OS X. You can get py2app from http://undefined.org/python/py2app.
Use this command to build the .app and collect the other needed files:
python create_mac_bundle.py py2app
Traditionally, this script would be named setup.py
"""
from setuptools import setup, Extension
import massive_launcher_version_number
# THE ssh_tunnel MODULE IS NOT CURRENTLY USED.
# ITS IMPLEMENTATION IS INCOMPLETE AND IT DOESN'T WORK IN ITS CURRENT FORM.
# IT HAS BEEN REPLACED BY CALLS TO EXTERNAL SSH PROCESSES
# (ssh on Mac, Linux and plink.exe on Windows).
#ssh_tunnel_module = Extension("ssh_tunnel",
#sources = ["ssh_tunnel_module.c"],
#extra_compile_args = ['-O3'],
#libraries = ['ssh2'])
setup(
options=dict(py2app=dict(
plist=dict(
CFBundleDevelopmentRegion="English",
CFBundleDisplayName="MASSIVE Launcher",
CFBundleExecutable="MASSIVE Launcher",
CFBundleIconFile="MASSIVE.icns",
CFBundleIdentifier="au.edu.monash.MASSIVE",
CFBundleName="MASSIVE Launcher",
CFBundlePackageType="APPL",
CFBundleVersion="Version " + massive_launcher_version_number.version_number
)
)
),
data_files=["MASSIVE.icns"],
name="MASSIVE Launcher",
setup_requires=["py2app"],
app=['massive.py']
#,ext_modules = [ssh_tunnel_module]
)