Mercurial > pub > dyncall > bindings
annotate 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 |
rev | line source |
---|---|
0 | 1 from distutils.core import setup, Extension |
2 | |
46
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
3 pydcext = Extension('pydc', |
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
4 sources = ['pydc.c'] |
28 | 5 , libraries = ['dyncall_s','dynload_s'] |
0 | 6 ) |
7 | |
8 setup( | |
4 | 9 name = 'pydc' |
46
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
10 , version = '1.1.5' |
37 | 11 , author = 'Daniel Adler, Tassilo Philipp' |
12 , author_email = 'dadler@dyncall.org, tphilip@dyncall.org' | |
13 , maintainer = 'Daniel Adler, Tassilo Philipp' | |
14 , maintainer_email = 'dadler@dyncall.org, tphilip@dyncall.org' | |
28 | 15 , url = 'https://www.dyncall.org' |
16 , download_url = 'https://www.dyncall.org/download' | |
17 , classifiers = [] | |
18 #, packages = ['pydc'] | |
19 #, package_dir = ['dir'] | |
20 , ext_modules = [pydcext] | |
4 | 21 , description = 'dynamic call bindings for python' |
0 | 22 , long_description = ''' |
46
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
23 library allowing to call arbitrary C library functions dynamically, |
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
24 based on a single call kernel (so no interface generation used/required) |
0 | 25 ''' |
46
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
26 , package_data = {"pydc-stubs": ['pydc.pyi']} |
c21d1c2c84e1
- removed pydc.py wrapper overhead (which only called pydcext.so functions, directly, anyways)
Tassilo Philipp
parents:
45
diff
changeset
|
27 , packages = ["pydc-stubs"] |
0 | 28 ) |
29 |