first skeleton of the obitools3 package

This commit is contained in:
2015-05-26 10:37:26 +02:00
parent 5948858a72
commit 30ddb32dfe
13 changed files with 62 additions and 0 deletions

10
MANIFEST.in Normal file
View File

@ -0,0 +1,10 @@
include setup.py
recursive-include distutils.ext *.py *.c *.pem
recursive-include src *.pyx *.pxd *.c *.h *.cfiles
recursive-include doc/sphinx/source *.txt *.rst *.py
recursive-include doc/sphinx/sphinxext *.py
include doc/sphinx/make.bat
include doc/sphinx/Makefile
include README.txt
include requirements.txt

View File

View File

View File

@ -0,0 +1,9 @@
../../../src/obidms.h
../../../src/obidms.c
../../../src/obierrno.h
../../../src/obierrno.c
../../../src/obilittlebigman.h
../../../src/obilittlebigman.c
../../../src/obitypes.h
../../../src/obitypes.c

View File

@ -0,0 +1,15 @@
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h":
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
class OBIDMS:
cdef OBIDMS_p pointer

View File

@ -0,0 +1,8 @@
from capidms cimport *
class OBIDMS:
def __init__(self,name):
self.pointer = obi_create_dms(name)
def __del__(self):
obi_close_dms(self.pointer)

View File

@ -0,0 +1,11 @@
../../../../src/obidms.h
../../../../src/obidms.c
../../../../src/obierrno.h
../../../../src/obierrno.c
../../../../src/obilittlebigman.h
../../../../src/obilittlebigman.c
../../../../src/obitypes.h
../../../../src/obitypes.c
../../../../src/obidmscolumn.h
../../../../src/obidmscolumn.c

View File

@ -0,0 +1,5 @@
major = 1
minor = 1
serial= '16'
version = "%2d.%02d.%s" % (major,minor,serial)

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
--extra-index-url https://pypi.python.org/simple/
Cython>=0.21
Sphinx>=1.2.0
ipython>=3.0.0

0
setup.py Normal file
View File