public
Description: Clone of SVN of PyObjC (not affiliated)
Homepage: http://pyobjc.sourceforge.net/
Clone URL: git://github.com/orestis/pyobjc.git
pyobjc / launch / setup.py
100644 52 lines (41 sloc) 1.235 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import ez_setup
ez_setup.use_setuptools()
 
from setuptools import setup, Extension
 
LONG_DESCRIPTION="""
Wrappers for the launch library on Mac OS X 10.4 or later.
"""
 
CLASSIFIERS = filter(None,
"""
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: MacOS X
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: MacOS :: MacOS X
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
""".splitlines())
 
 
def grep_version():
    fp = open("Lib/launch/__init__.py", "r")
    for ln in fp:
        if ln.startswith("__version__"):
            return ln.split('=')[-1].strip()[1:-1]
 
 
setup(
    name="macosx-launch",
    version=grep_version(),
    description="Wrapper for the launch library in MacOSX 10.3 or later",
    long_description=LONG_DESCRIPTION,
    author="Ronald Oussoren",
    author_email="ronaldoussoren@mac.com",
    # url=
    platforms=[ "MacOS X" ],
    ext_modules=[
        Extension("launch._launch", [ 'Modules/_launch.c']),
    ],
    packages = ['launch'],
    package_dir = { '': 'Lib' },
    classifiers = CLASSIFIERS,
    license = "MIT License",
    # download_url=
)