Message262308
I want to make a a dynamic library to run its function with ctypes.
Also I want to build the library from sources with distutils (the C++ sources are distributed with my Python code).
But alas! Our distutils fails, if the library doesn't have initialization function (something like init_<module_name>). Even if the module does not need any initialization.
I did a quick and dirty solution: added a dummy function:
void init_<module_name>(){}
It somehow works, but I don't think that it is a good idea.
Cannot you add the possibility to tell distutils, that this extention module is just a simple DLL, that will be used via ctypes (or somehow else) and it does not need any extra init script?
Also, cannot you add an extra section to ctypes documentation? With a description how to build such extensions via distutils? |
|
Date |
User |
Action |
Args |
2016-03-23 20:54:27 | Buraddin Ibn-Karlo | set | recipients:
+ Buraddin Ibn-Karlo, paul.moore, tim.golden, docs@python, zach.ware, steve.dower |
2016-03-23 20:54:27 | Buraddin Ibn-Karlo | set | messageid: <1458766467.89.0.930968148514.issue26629@psf.upfronthosting.co.za> |
2016-03-23 20:54:27 | Buraddin Ibn-Karlo | link | issue26629 messages |
2016-03-23 20:54:27 | Buraddin Ibn-Karlo | create | |
|