[docs] [issue26629] Need an ability to build standard DLLs with distutils

Buraddin Ibn-Karlo report at bugs.python.org
Wed Mar 23 16:54:27 EDT 2016


New submission from Buraddin Ibn-Karlo:

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?

----------
assignee: docs at python
components: Build, Documentation, Extension Modules, Windows, ctypes
messages: 262308
nosy: Buraddin Ibn-Karlo, docs at python, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Need an ability to build standard DLLs with distutils
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26629>
_______________________________________


More information about the docs mailing list