source: trunk/StreamVision/setup.py @ 634

Last change on this file since 634 was 634, checked in by Nicholas Riley, 8 years ago

setup.py: Carbon.CarbonEvt? functions are only available in 32-bit Python; don't try to run as 64-bit.

File size: 943 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    LSArchitecturePriority=['i386', 'ppc'],
16    LSUIElement=1,
17)
18
19setup(
20    app=["StreamVision.py"],
21    ext_modules=[Extension('HotKey',
22                           sources=['HotKeymodule.c'],
23                           extra_link_args=['-framework', 'Carbon']),
24                 Extension('HIDRemote',
25                           sources=['HIDRemotemodule.m'],
26                           extra_link_args=['-framework', 'Cocoa',
27                                            '-framework', 'IOKit',
28                                            'libHIDUtilities.a'])],
29    data_files=["English.lproj"],
30    options=dict(py2app=dict(plist=plist)),
31)
Note: See TracBrowser for help on using the repository browser.