Discussion:
[python-win32] Building my own C extension [SEC=UNCLASSIFIED]
Andrew MacIntyre
2015-11-05 03:35:36 UTC
Permalink
From: python-win32 On Behalf Of Ken Brooks
Sent: Thursday, 5 November 2015 10:23 AM
{...}
Apart from that, can someone please point me to the documentation for the current "right" way of building things, as an extension developer?
The "Distributing Python Modules" section of the Python 2.7 documentation is the reference I have used.

The "Single extension module" example is essentially a "hello world" level albeit lacking actual C extension source code. Once the right compiler is installed, the distutils setup.py script you create (if correct) should be able to build an installer or build and install the extension directly. Binary installer info is in the "Creating Built Distributions" section.

There are more advance toolsets (e.g. setuptools, pip etc) that can be used, but I've always found Distutils sufficient for my needs on Python 2.x (not tried on Python 3.x yet).

Regards,
Andrew.

-------------------------> "These thoughts are mine alone!" <---------
Andrew MacIntyre           Operations, Services and Technologies Branch
tel:   +61 2 6219 5356     Communications Infrastructure Division
fax:   +61 2 6219 5347     Australian Communications & Media Authority
email: ***@acma.gov.au            http://www.acma.gov.au/


NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.

Loading...