Last change
on this file since 354 was 302, checked in by Nicholas Riley, 18 years ago |
setup.py: Use setuptools.
StreamVision.py: HIDRemote helpers aren't compiled for Intel yet; just
skip them for now.
|
File size:
899 bytes
|
Line | |
---|
1 | """
|
---|
2 | Script for building the example.
|
---|
3 |
|
---|
4 | Usage:
|
---|
5 | python setup.py py2app
|
---|
6 | """
|
---|
7 | from distutils.core import setup
|
---|
8 | from setuptools.extension import Extension
|
---|
9 | import py2app
|
---|
10 |
|
---|
11 | plist = dict(
|
---|
12 | CFBundleIdentifier='net.sabi.StreamVision',
|
---|
13 | CFBundleName='StreamVision',
|
---|
14 | NSPrincipalClass='StreamVision',
|
---|
15 | LSUIElement=1,
|
---|
16 | )
|
---|
17 |
|
---|
18 | setup(
|
---|
19 | app=["StreamVision.py"],
|
---|
20 | ext_modules=[Extension('HotKey',
|
---|
21 | sources=['HotKeymodule.c'],
|
---|
22 | extra_link_args=['-framework', 'Carbon']),
|
---|
23 | Extension('HIDRemote',
|
---|
24 | sources=['HIDRemotemodule.m'],
|
---|
25 | extra_link_args=['-framework', 'Cocoa',
|
---|
26 | '-framework', 'IOKit',
|
---|
27 | 'libHIDUtilities.a'])],
|
---|
28 | data_files=["English.lproj"],
|
---|
29 | options=dict(py2app=dict(plist=plist)),
|
---|
30 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.