comparison python/pydc/setup.py @ 46:c21d1c2c84e1

- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways) * implies renaming pydcext.* to pydc.* * while at it, iterate directly over args that are passed in (before we did extract fptr, sig and a tuple for the args and iterated over latter afterwards); we might have a tiny perf improvement now - added type stub as package_data
author Tassilo Philipp
date Fri, 13 Nov 2020 14:10:31 +0100
parents da553362fa7c
children edf5c85de5ac
comparison
equal deleted inserted replaced
45:da553362fa7c 46:c21d1c2c84e1
1 from distutils.core import setup, Extension 1 from distutils.core import setup, Extension
2 2
3 pydcext = Extension('pydcext', 3 pydcext = Extension('pydc',
4 sources = ['pydcext.c'] 4 sources = ['pydc.c']
5 , libraries = ['dyncall_s','dynload_s'] 5 , libraries = ['dyncall_s','dynload_s']
6 ) 6 )
7 7
8 setup( 8 setup(
9 name = 'pydc' 9 name = 'pydc'
10 , version = '1.1.4' 10 , version = '1.1.5'
11 , author = 'Daniel Adler, Tassilo Philipp' 11 , author = 'Daniel Adler, Tassilo Philipp'
12 , author_email = 'dadler@dyncall.org, tphilip@dyncall.org' 12 , author_email = 'dadler@dyncall.org, tphilip@dyncall.org'
13 , maintainer = 'Daniel Adler, Tassilo Philipp' 13 , maintainer = 'Daniel Adler, Tassilo Philipp'
14 , maintainer_email = 'dadler@dyncall.org, tphilip@dyncall.org' 14 , maintainer_email = 'dadler@dyncall.org, tphilip@dyncall.org'
15 , url = 'https://www.dyncall.org' 15 , url = 'https://www.dyncall.org'
16 , download_url = 'https://www.dyncall.org/download' 16 , download_url = 'https://www.dyncall.org/download'
17 , classifiers = [] 17 , classifiers = []
18 #, packages = ['pydc'] 18 #, packages = ['pydc']
19 #, package_dir = ['dir'] 19 #, package_dir = ['dir']
20 , ext_modules = [pydcext] 20 , ext_modules = [pydcext]
21 , py_modules = ['pydc']
22 , description = 'dynamic call bindings for python' 21 , description = 'dynamic call bindings for python'
23 , long_description = ''' 22 , long_description = '''
24 dynamic call library allows to call arbitrary C library functions 23 library allowing to call arbitrary C library functions dynamically,
25 with a single call code (written in assembly) 24 based on a single call kernel (so no interface generation used/required)
26 ''' 25 '''
26 , package_data = {"pydc-stubs": ['pydc.pyi']}
27 , packages = ["pydc-stubs"]
27 ) 28 )
28 29