~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin
  • Date: 2010-07-04 07:09:09 UTC
  • mto: This revision was merged to the branch mainline in revision 5333.
  • Revision ID: gzlist@googlemail.com-20100704070909-r51s2leny0wjcqtn
Use same timestamp rounding logic as Inno, just in case

Show diffs side-by-side

added added

removed removed

Lines of Context:
542
542
            # filesystem bytecode internal and script timestamps will match
543
543
            for f in compile_names:
544
544
                mtime = os.stat(f).st_mtime
545
 
                if mtime % 2:
546
 
                    mtime += 1
 
545
                remainder = mtime % 2
 
546
                if remainder:
 
547
                    mtime -= remainder
547
548
                    os.utime(f, (mtime, mtime))
548
549
            byte_compile(compile_names,
549
550
                         optimize=optimize,