New submission from Larry Hastings:

A minor bug, but still one that could cause confusion.  It's already bitten me 
once.

If I change the code generator in clinic.py, then --make everything, files 
using the "file" destination often won't change.  All the changes to the 
generated code will go in the generated file.  And since the UNIX build process 
ignores those generated files, it doesn't rebuild the source file.  I'd have to 
use "--make -f".

This won't just happen to me though.  If you update your trunk and run "make 
clinic" this could easily happen to you too.

I propose that Clinic handle this as follows: if the generated file changes, 
but the source file does not, it "touches" the source file.  (Technically I'll 
probably just rewrite the source file, as I already have code that does that.)

----------
assignee: larry
messages: 209315
nosy: larry, ncoghlan, serhiy.storchaka, zach.ware
priority: low
severity: normal
stage: needs patch
status: open
title: Argument Clinic: Touch source file if any output file changed
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20396>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to