Last change
on this file since 665 was 344, checked in by Nicholas Riley, 17 years ago |
setup.py: Note that the bundle bit needs setting.
RetroStatus.py: Launch/quit Apple Backup, to work around its periodic
failure when left running all the time.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[201] | 1 | from distutils.core import setup
|
---|
| 2 | import py2app
|
---|
| 3 |
|
---|
| 4 | # Retrospect wants the event handler called "Retrospect Event Handler" without
|
---|
| 5 | # the .app suffix; py2app doesn't want to create apps with no suffix
|
---|
| 6 | class TrueEmpty(object):
|
---|
| 7 | def __str__(self): return ''
|
---|
| 8 | def __add__(self, other): return other
|
---|
| 9 | def __radd__(self, other): return other
|
---|
| 10 |
|
---|
| 11 | setup(name='Retrospect Event Handler',
|
---|
| 12 | version='1.0a1',
|
---|
| 13 | app=['RetroStatus.py'],
|
---|
| 14 | options=dict(py2app=
|
---|
| 15 | dict(extension=TrueEmpty(),
|
---|
| 16 | iconfile='RetroClient.icns',
|
---|
| 17 | plist=dict(NSAppleScriptEnabled=True,
|
---|
| 18 | CFBundleIdentifier='net.sabi.RetroStatus'))))
|
---|
[344] | 19 |
|
---|
| 20 | # don't forget to set the bundle bit:
|
---|
| 21 | # % SetFile -a B "dist/Retrospect Event Handler"
|
---|
| 22 |
|
---|
| 23 | # XXX can't do this from Python:
|
---|
| 24 | #
|
---|
| 25 | # >>> f.FSGetCatalogInfo(kFSCatInfoFinderInfo)[2]
|
---|
| 26 | # Carbon.File.FSSpec((-100, 118904, 'Retrospect Event Handler'))
|
---|
| 27 | # >>> f.FSGetCatalogInfo(kFSCatInfoFinderInfo)[2].FSpGetFInfo()
|
---|
| 28 | # Traceback (most recent call last):
|
---|
| 29 | # File "<stdin>", line 1, in ?
|
---|
| 30 | # MacOS.Error: (-43, 'File not found')
|
---|
Note:
See
TracBrowser
for help on using the repository browser.