This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Buraddin Ibn-Karlo
Recipients Buraddin Ibn-Karlo, docs@python, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-03-23.20:54:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:27Buraddin Ibn-Karlosetrecipients: + Buraddin Ibn-Karlo, paul.moore, tim.golden, docs@python, zach.ware, steve.dower
2016-03-23 20:54:27Buraddin Ibn-Karlosetmessageid: <>
2016-03-23 20:54:27Buraddin Ibn-Karlolinkissue26629 messages
2016-03-23 20:54:27Buraddin Ibn-Karlocreate