[Patches] [ python-Patches-1109658 ] distutils dry-run breaks when attempting to bytecompile

SourceForge.net noreply at sourceforge.net
Sat Jan 29 15:35:07 CET 2005


Patches item #1109658, was opened at 2005-01-26 08:19
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1109658&group_id=5470

Category: Distutils and setup.py
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils dry-run breaks when attempting to bytecompile

Initial Comment:
If you do a distutils --dry-run of an uninstalled
package, it will break when it attempts to check if the
non-installed  .py file needs bytecompiling. The
attached patch fixes this.


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2005-01-29 15:35

Message:
Logged In: YES 
user_id=21627

The patch is incomplete - it does not update the docstring.

For symmetry with newer_group, it might be reasonable to
support the same three arguments.

Looking at the code, I find it unfortunate that it uses
os.path.exists, causing a stat call, and then does another
stat call to find the time stamp.

Perhaps it would be possible to implement newer in terms of
newer_group?

newer_pairwise should then probably also allow propagation
of the newer argument.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1109658&group_id=5470


More information about the Patches mailing list