source: trunk/StreamVision/setup.py@ 302

Last change on this file since 302 was 302, checked in by Nicholas Riley, 16 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"""
2Script for building the example.
3
4Usage:
5 python setup.py py2app
6"""
7from distutils.core import setup
8from setuptools.extension import Extension
9import py2app
10
11plist = dict(
12 CFBundleIdentifier='net.sabi.StreamVision',
13 CFBundleName='StreamVision',
14 NSPrincipalClass='StreamVision',
15 LSUIElement=1,
16)
17
18setup(
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.