Rev | Line | |
---|
[196] | 1 | """
|
---|
| 2 | Script for building LocationDo.
|
---|
| 3 |
|
---|
| 4 | Usage:
|
---|
| 5 | python setup.py py2app
|
---|
| 6 | """
|
---|
| 7 | from distutils.core import setup, Extension
|
---|
| 8 | import py2app
|
---|
| 9 |
|
---|
| 10 | plist = dict(
|
---|
| 11 | CFBundleIdentifier='net.sabi.LocationDo',
|
---|
| 12 | CFBundleName='LocationDo',
|
---|
| 13 | NSPrincipalClass='LocationDo',
|
---|
| 14 | LSUIElement=1,
|
---|
| 15 | )
|
---|
| 16 |
|
---|
| 17 | setup(
|
---|
| 18 | app=["LocationDo.py"],
|
---|
| 19 | ext_modules=[Extension('SCNetworkReachability',
|
---|
| 20 | sources=['SCNetworkReachabilitymodule.c'],
|
---|
| 21 | extra_link_args=['-framework', 'SystemConfiguration',
|
---|
| 22 | '-framework', 'CoreFoundation'])],
|
---|
| 23 | data_files=["English.lproj"],
|
---|
| 24 | options=dict(py2app=dict(plist=plist,
|
---|
| 25 | resources=['brightness'])),
|
---|
| 26 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.