-libraries = ['bos', 'volser', 'vldb', 'afsrpc', 'afsauthent', 'cmd',
- 'usd', 'audit', 'resolv', 'com_err']
+libraries = ['afsauthent', 'afsrpc', 'afsutil', 'resolv']
+define_macros = [('AFS_PTHREAD_ENV', None)]
+
+def PyAFSExtension(module):
+ return Extension(module,
+ ["%s.pyx" % module.replace('.', '/')],
+ libraries=libraries,
+ include_dirs=include_dirs,
+ library_dirs=library_dirs,
+ define_macros=define_macros)