Issue 14517: distutils always recompiles all C source files (original) (raw)

Created on 2012-04-06 11:24 by cbenoit, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg157659 - (view) Author: Christophe Benoit (cbenoit) Date: 2012-04-06 11:24
When using distutils to build a C-extension, I have noticed that my C-sources were recompiled as soon as one source file has been touched; from python 2.6. This was not the case with previous python versions.
msg158846 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-04-20 16:11
I think this is done on purpose; I’ll dig up the changeset and bug report later.
msg158937 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-04-21 23:49
Is it #5372?
msg159793 - (view) Author: Christophe Benoit (cbenoit) Date: 2012-05-02 12:41
2012/4/22 Éric Araujo <report@bugs.python.org> > > Éric Araujo <merwok@netwok.org> added the comment: > > Is it #5372? > > ---------- > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue14517> > _______________________________________ > Yes, I think so. The problem is : For modules with a lot of .c, recompiling everything can take a very long time... In fact, it becomes very cumbersome for me and my co-workers... Is there a way to make the previous check on timestamps optional?
msg159894 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-05-04 03:16
Hm, this change was done on purpose, because of the problems caused by stale object files (as explained on the other bug report), so it cannot just be reverted. distutils is also under a feature freeze, only clear bugs warrant a change, so a performance improvement request like this must target distutils2, if we could find a good way to do it.
History
Date User Action Args
2022-04-11 14:57:28 admin set github: 58722
2014-03-13 07:45:15 eric.araujo set status: open -> closedresolution: works for mestage: resolved
2012-05-04 04:39:17 Arfrever set nosy: + Arfrever
2012-05-04 03:16:07 eric.araujo set messages: + title: Recompilation of sources with Distutils -> distutils always recompiles all C source files
2012-05-02 12:41:20 cbenoit set messages: +
2012-04-21 23:49:36 eric.araujo set messages: +
2012-04-20 16:11:23 eric.araujo set messages: +
2012-04-06 11:24:56 cbenoit create