[New-bugs-announce] [issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

Jeroen van den Hout report at bugs.python.org
Wed Jun 12 08:11:36 EDT 2019


New submission from Jeroen van den Hout <jlvandenhout at gmail.com>:

Currently when building an extension which lists a SWIG interface (.i) file as a source file, SWIG creates the files correctly in the build_ext command. Unfortunately this command is run after the build_py command, so the python files (.py) created in the build_ext command are never copied to the installation.
To fix this, swap build_ext and build_py commands in the sub_commands attribute of the build command.

----------
components: Distutils
messages: 345330
nosy: Jeroen van den Hout, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: swap distutils build_ext and build_py commands to allow proper SWIG extension installation
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37247>
_______________________________________


More information about the New-bugs-announce mailing list