forked from malthe/macfsevents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (39 loc) · 1.41 KB
/
setup.py
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
import os
from ez_setup import use_setuptools
use_setuptools()
from setuptools.extension import Extension
from setuptools.command.build_ext import build_ext
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
ext_modules = [
Extension(name = '_fsevents',
sources = ['_fsevents.c'],
extra_link_args = ["-framework","CoreFoundation",
"-framework","CoreServices"],
),
]
setup(name = "MacFSEvents",
version = "0.3.0",
description = "Thread-based interface to file system observation primitives.",
long_description = "\n\n".join((read('README.rst'), read('CHANGES.rst'))),
license = "BSD",
author = "Malthe Borch",
author_email = "[email protected]",
cmdclass = dict(build_ext=build_ext),
ext_modules = ext_modules,
platforms = ["Mac OS X"],
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: C',
'Programming Language :: Python :: 2.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Filesystems',
],
zip_safe=False,
test_suite="tests",
py_modules=['fsevents'],
)