MIT License? Did I say MIT License? I meant GPL.
[invirt/packages/python-afs.git] / setup.py
1 #!/usr/bin/python
2
3 from setuptools import setup, find_packages
4 from distutils.extension import Extension
5 from Pyrex.Distutils import build_ext
6 import sys
7 import os
8
9 for root in ['/Library/OpenAFS/Tools',
10              '/usr/local',
11              '/usr/afsws',
12              '/usr']:
13     if os.path.exists('%s/include/afs/afs.h' % root):
14         break
15
16 include_dirs = [os.path.join(os.path.dirname(__file__), 'afs'),
17                 '%s/include' % root]
18 library_dirs = ['%s/lib' % root,
19                 '%s/lib/afs' % root]
20
21 setup(
22     name="PyAFS",
23     version="0.0.0",
24     description="PyAFS - Python bindings for AFS",
25     author="Evan Broder",
26     author_email="broder@mit.edu",
27     license="GPL",
28     requires=['Pyrex'],
29     packages=find_packages(),
30     ext_modules=[
31         Extension("afs._pts",
32                   ["afs/_pts.pyx"],
33                   libraries=['bos', 'volser', 'vldb', 'afsrpc', 'afsauthent',
34                              'cmd', 'usd', 'audit'],
35                   include_dirs=include_dirs,
36                   library_dirs=library_dirs)
37         ],
38     cmdclass= {"build_ext": build_ext}
39 )