This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils always recompiles all C source files
Type: behavior Stage: resolved
Components: Distutils Versions: Python 2.7
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: Arfrever, cbenoit, eric.araujo, tarek
Priority: normal Keywords:

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:28adminsetgithub: 58722
2014-03-13 07:45:15eric.araujosetstatus: open -> closed
resolution: works for me
stage: resolved
2012-05-04 04:39:17Arfreversetnosy: + Arfrever
2012-05-04 03:16:07eric.araujosetmessages: + msg159894
title: Recompilation of sources with Distutils -> distutils always recompiles all C source files
2012-05-02 12:41:20cbenoitsetmessages: + msg159793
2012-04-21 23:49:36eric.araujosetmessages: + msg158937
2012-04-20 16:11:23eric.araujosetmessages: + msg158846
2012-04-06 11:24:56cbenoitcreate