Éric Araujo <merwok at netwok.org> added the comment:
I now think that this should be fixed in d1 too. We could just always rebuild scripts (it’s just a file copy), or implement the matching idea from my previous message.
To answer my own question:
> Or is there a rule that says build_* command only look at timetamps to decide that?
I think a command is free to do whatever inspection it needs to determine is something needs rebuilding.
Tests would need to exercise both the --executable option of build_scripts and default value. Thankfully the code uses sys.executable and we can inject a custom value in a test. Adding the easy keyword, I think this is a good candidate for the upcoming Montreal sprint.
----------
assignee: tarek -> eric.araujo
components: +Distutils
keywords: +easy
nosy: +alexis
stage: -> test needed
title: setup.py caches outdated scripts in the build tree -> distutils[2] should recreate scripts in the build tree
type: enhancement -> behavior
versions: +Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10374>
_______________________________________