changeset 4:4c5019f00f5b

- python binding cleanup
author cslag
date Tue, 22 Mar 2016 00:55:15 +0100
parents f5d4d5c2f750
children bf5625bb6f05
files python/pydc/GNUmakefile python/pydc/README.txt python/pydc/setup.py
diffstat 3 files changed, 22 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/python/pydc/GNUmakefile	Thu Dec 31 20:24:53 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-TOP	= ../../..
-include $(TOP)/build/gmake/prolog.gmake
-PYSETUPFLAGS = -I $(TOP)/dyncall:$(TOP)/dynload -L $(TOP)/dyncall/$(BUILD_DIR):$(TOP)/dynload/$(BUILD_DIR) 
-PYTHON_SETUP = setup.py
-include $(TOP)/build/gmake/epilog.gmake
-
--- a/python/pydc/README.txt	Thu Dec 31 20:24:53 2015 +0100
+++ b/python/pydc/README.txt	Tue Mar 22 00:55:15 2016 +0100
@@ -2,7 +2,17 @@
 (C) 2007 Daniel Adler.
 2007 04. December
 
+INSTALLATION
+------------
+
+1) make sure dyncall is built and libraries/headers are in include paths or
+   CFLAGS points to them, etc.
+
+2) python setup.py install
+
+
 API
+---
 
 libhandle = load(libpath)
 funcptr = find(libhandle, symbolname )
@@ -32,11 +42,12 @@
     'd' double -> PyFloat
 
 BUGS
+----
 
 * build on osx/ppc - link error i386 something...  [MacPython 2.4]
 
   solution:
-  installation of latest pytho for os x (MacPython 2.5)  
+  installation of latest python for os x (MacPython 2.5)  
 
   build log:
 
--- a/python/pydc/setup.py	Thu Dec 31 20:24:53 2015 +0100
+++ b/python/pydc/setup.py	Tue Mar 22 00:55:15 2016 +0100
@@ -1,28 +1,24 @@
 from distutils.core import setup, Extension
 
-dctop = '../../..'
-
 pydcext = Extension('pydcext',
   sources = ['pydcext.c']
-#,include_dirs=[ "/".join([dctop,'dyncall']), "/".join([dctop,'dynload']) ]
-#,library_dirs=[ "/".join([dctop,'dyncall']), "/".join([dctop,'dynload']) ]
 ,libraries=['dyncall_s','dynload_s']
 )
 
 setup(
-  name='pydc'
-, version='0.1'
-, author = 'Daniel Adler'
-, author_email = 'dadler@uni-goettingen.de'
-, maintainer = 'Daniel Adler'
-, maintainer_email = 'dadler@uni-goettingen.de'
-, url = 'http://dyncall.org'
-, description = 'dynamic call bindings for python'
+  name             = 'pydc'
+, version          = '0.9'
+, author           = 'Daniel Adler'
+, author_email     = 'dadler@dyncall.org'
+, maintainer       = 'Daniel Adler'
+, maintainer_email = 'dadler@dyncall.org'
+, url              = 'http://www.dyncall.org'
+, description      = 'dynamic call bindings for python'
 , long_description = '''
-dynamic call library allows to call arbitrary library functions
+dynamic call library allows to call arbitrary C library functions
 with a single call code (written in assembly)
 '''
-, download_url = 'http://dyncall.org/download'
+, download_url = 'http://www.dyncall.org/download'
 , classifiers=[]
 #, packages=['pydc']
 #, package_dir['dir']