Signed-off-by: Evan Broder <broder@mit.edu>
afs/_pts.c
+afs/_pts.dep
+
*.so
build
dist
-cdef extern from "afs/stds.h":
- ctypedef long afs_int32
-
-cdef extern from "ubik.h":
- enum:
- MAXSERVERS
-
- struct ubik_client:
- pass
-
-cdef extern from "rx/rx.h":
- int rx_Init(int port)
+cimport afs as a
cdef class PTS:
- cdef ubik_client * client
+ cdef a.ubik_client * client
def __cinit__(self):
- cdef afs_int32 code
+ cdef a.afs_int32 code
self.client = NULL
- code = rx_Init(0)
+ code = a.rx_Init(0)
if code != 0:
raise Exception(str(code))
--- /dev/null
+cdef extern from "afs/stds.h":
+ ctypedef long afs_int32
+
+cdef extern from "ubik.h":
+ enum:
+ MAXSERVERS
+
+ struct ubik_client:
+ pass
+
+cdef extern from "rx/rx.h":
+ int rx_Init(int port)
if os.path.exists('%s/include/afs/afs.h' % root):
break
-include_dirs = ['%s/include' % root]
+include_dirs = [os.path.join(os.path.dirname(__file__), 'afs'),
+ '%s/include' % root]
library_dirs = ['%s/lib' % root,
'%s/lib/afs' % root]