1'''
2PyObjC wrappers for the framework "CFNetwork", part of "CoreServices" on
3MacOSX.
4
5The CFNetwork framework provides a library of abstractions for networking
6protocols. The most interesting bits for Python programmers are the
7API's for working with proxy autoconfiguration and the API's for networking
8diagnotics.
9
10These wrappers don't include documentation, please check Apple's documention
11for information on how to use this framework and PyObjC's documentation
12for general tips and tricks regarding the translation between Python
13and (Objective-)C frameworks
14'''
15import ez_setup
16ez_setup.use_setuptools()
17
18from setuptools import setup, Extension
19try:
20    from PyObjCMetaData.commands import extra_cmdclass, extra_options
21except ImportError:
22    extra_cmdclass = {}
23    extra_options = lambda name: {}
24
25import os
26if os.uname()[2] >= '9.':
27    CFLAGS=[]
28else:
29    CFLAGS=[]
30
31setup(
32    name='pyobjc-framework-CFNetwork',
33    version='2.2b3',
34    description = "Wrappers for the framework CFNetwork on Mac OS X",
35    long_description = __doc__,
36    author='Ronald Oussoren',
37    author_email='pyobjc-dev@lists.sourceforge.net',
38    url='http://pyobjc.sourceforge.net',
39    platforms = [ "MacOS X" ],
40    packages = [ "CFNetwork" ],
41    package_dir = { '': 'Lib/' },
42    install_requires = [
43        'pyobjc-core>=2.2b3',
44        'pyobjc-framework-Cocoa>=2.2b3',
45    ],
46    package_data = {
47        '': ['*.bridgesupport']
48    },
49    ext_modules = [
50        Extension("CFNetwork._manual",
51            ["Modules/_manual.m"],
52            extra_link_args=['-framework', 'CoreServices'],
53            extra_compile_args=CFLAGS,
54        ),
55    ],
56    test_suite='PyObjCTest',
57    cmdclass = extra_cmdclass,
58    options = extra_options('CFNetwork'),
59    zip_safe = True,
60)
61