Create an afs.afs module for common functions, like error handling.
[invirt/packages/python-afs.git] / setup.py
index f1bf002..977deb5 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ include_dirs = [os.path.join(os.path.dirname(__file__), 'afs'),
 library_dirs = ['%s/lib' % root,
                 '%s/lib/afs' % root]
 libraries = ['afsauthent', 'afsrpc', 'afsutil', 'resolv']
-define_macros = [('AfS_PTHREAD_ENV', None)]
+define_macros = [('AFS_PTHREAD_ENV', None)]
 
 setup(
     name="PyAFS",
@@ -35,6 +35,12 @@ setup(
                   libraries=libraries,
                   include_dirs=include_dirs,
                   library_dirs=library_dirs,
+                  define_macros=define_macros),
+        Extension("afs.afs",
+                  ["afs/afs.pyx"],
+                  libraries=libraries,
+                  include_dirs=include_dirs,
+                  library_dirs=library_dirs,
                   define_macros=define_macros)
         ],
     cmdclass= {"build_ext": build_ext}