1''' 2Wrappers for the "FSEvents" API in MacOS X. The functions in this framework 3allow you to reliably observe changes to the filesystem, even when your 4program is not running al the time. 5 6These wrappers don't include documentation, please check Apple's documention 7for information on how to use this framework and PyObjC's documentation 8for general tips and tricks regarding the translation between Python 9and (Objective-)C frameworks 10''' 11import ez_setup 12ez_setup.use_setuptools() 13 14from setuptools import setup, Extension 15try: 16 from PyObjCMetaData.commands import extra_cmdclass, extra_options 17except ImportError: 18 extra_cmdclass = {} 19 extra_options = lambda name: {} 20 21import os 22if os.uname()[2] >= '9.': 23 CFLAGS=[] 24else: 25 CFLAGS=[] 26 27setup( 28 name='pyobjc-framework-FSEvents', 29 version='2.2b3', 30 description = "Wrappers for the framework FSEvents on Mac OS X", 31 long_description = __doc__, 32 author='Ronald Oussoren', 33 author_email='pyobjc-dev@lists.sourceforge.net', 34 url='http://pyobjc.sourceforge.net', 35 platforms = [ "MacOS X" ], 36 packages = [ "FSEvents" ], 37 package_dir = { '': 'Lib' }, 38 install_requires = [ 39 'pyobjc-core>=2.2b1', 40 'pyobjc-framework-Cocoa>=2.2b1', 41 ], 42 package_data = { 43 '': ['*.bridgesupport'] 44 }, 45 test_suite='PyObjCTest', 46 cmdclass = extra_cmdclass, 47 options = extra_options('FSEvents'), 48 ext_modules = [ 49 Extension("FSEvents._callbacks", 50 [ "Modules/_callbacks.m" ], 51 extra_compile_args=CFLAGS), 52 ], 53 zip_safe = True, 54) 55