You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
swig support in distutils should use the build and temp dirs #46876
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/tarekziade'closed_at=<Date2021-02-03.18:37:46.332>created_at=<Date2008-04-12.12:53:23.955>labels= ['type-bug', 'library']
title='swig support in distutils should use the build and temp dirs'updated_at=<Date2021-02-03.18:37:46.332>user='https://bugs.python.org/afflux'
Distutils should tell swig to create it's C wrapper file into the
temporary directory (eg. build/temp.linux-i686-2.5) and to write the
language specific files to the library directory (eg.
build/lib.linux-i686-2.5).
Rationale:
Without the language specific files, python swig extensions won't be
able to run, so they should definetly be distributed by distutils.
The wrapper files are build by-products and should therefore be in the
temporary directory, so they get cleaned up on "setup.py clean".
Distutils is now deprecated (see PEP-632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.
If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
Activity
afflux commentedon Apr 12, 2008
Distutils should tell swig to create it's C wrapper file into the
temporary directory (eg. build/temp.linux-i686-2.5) and to write the
language specific files to the library directory (eg.
build/lib.linux-i686-2.5).
Rationale:
Without the language specific files, python swig extensions won't be
able to run, so they should definetly be distributed by distutils.
The wrapper files are build by-products and should therefore be in the
temporary directory, so they get cleaned up on "setup.py clean".
loewis commentedon Apr 12, 2008
Can you provide a patch?
afflux commentedon Apr 12, 2008
Without having it tested very much, the attached patch fixes this issue
for me.
afflux commentedon Apr 13, 2008
Note that the language specific files can't be handled via py_modules
because this is processed before their generation.
afflux commentedon Apr 13, 2008
I noticed that my patch did not work for absolute directory names and
adjusted the matching to fix this.
akitada commentedon Feb 8, 2009
Same with bpo-1016626?
afflux commentedon Feb 8, 2009
Except that the _wrap.c file would still be created at the wrong place,
yes, you're right.
zooba commentedon Feb 3, 2021
Distutils is now deprecated (see PEP-632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.
If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools