Issue 2624: swig support in distutils should use the build and temp dirs (original) (raw)

Created on 2008-04-12 12:53 by afflux, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python_distutils+swig.patch afflux,2008-04-13 18:33 patch
Messages (8)
msg65399 - (view) Author: Kjell Braden (afflux) Date: 2008-04-12 12:53
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".
msg65401 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-04-12 13:57
Can you provide a patch?
msg65402 - (view) Author: Kjell Braden (afflux) Date: 2008-04-12 14:34
Without having it tested very much, the attached patch fixes this issue for me.
msg65440 - (view) Author: Kjell Braden (afflux) Date: 2008-04-13 09:35
Note that the language specific files can't be handled via py_modules because this is processed before their generation.
msg65449 - (view) Author: Kjell Braden (afflux) Date: 2008-04-13 18:33
I noticed that my patch did not work for absolute directory names and adjusted the matching to fix this.
msg81408 - (view) Author: Akira Kitada (akitada) * Date: 2009-02-08 19:03
Same with ?
msg81416 - (view) Author: Kjell Braden (afflux) Date: 2009-02-08 20:20
Except that the _wrap.c file would still be created at the wrong place, yes, you're right.
msg386452 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:37
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
History
Date User Action Args
2022-04-11 14:56:33 admin set github: 46876
2021-02-03 18:37:46 steve.dower set status: open -> closednosy: + steve.dowermessages: + resolution: out of datestage: resolved
2010-12-03 21:03:53 Jeff.Laughlin set nosy: + Jeff.Laughlin
2010-08-19 16:08:22 BreamoreBoy set versions: + Python 3.2
2009-12-17 00:44:40 reowen set nosy: + reowen
2009-02-13 09:02:52 tarek set priority: normal
2009-02-08 20:20:38 afflux set messages: +
2009-02-08 19:03:28 akitada set nosy: + akitadamessages: +
2009-02-06 09:14:22 tarek set assignee: tarekversions: + Python 3.1, Python 2.7, - Python 2.5nosy: + tarek
2008-04-13 18:34:18 afflux set components: + Distutils, - Demos and Tools
2008-04-13 18:33:58 afflux set files: + python_distutils+swig.patchmessages: +
2008-04-13 18:32:17 afflux set files: - python_distutils+swig.patch
2008-04-13 09:35:39 afflux set messages: +
2008-04-12 14:34:13 afflux set files: + python_distutils+swig.patchkeywords: + patchmessages: +
2008-04-12 13:57:48 loewis set nosy: + loewismessages: +
2008-04-12 12:53:23 afflux create