~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Martin Pool
  • Date: 2005-07-22 23:32:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050722233200-ccdeca985093a9fb
- now needs python 2.4
- update instructions for running selftest

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
REINVOKE = "__BZR_REINVOKE"    
28
 
NEED_VERS = (2, 4)
29
 
KNOWN_PYTHONS = ('python2.4',)
 
28
NEED_VERS = (2, 3)
30
29
 
31
30
if version_info < NEED_VERS:
32
31
    if not os.environ.has_key(REINVOKE):
33
32
        # mutating os.environ doesn't work in old Pythons
34
33
        os.putenv(REINVOKE, "1")
35
 
        for python in KNOWN_PYTHONS:
 
34
        for python in 'python2.4', 'python2.3':
36
35
            try:
37
36
                os.execvp(python, [python] + sys.argv)
38
37
            except OSError:
42
41
    sys.exit(1)
43
42
os.unsetenv(REINVOKE)
44
43
 
45
 
import bzrlib
46
 
import bzrlib.commands
47
 
import bzrlib.trace
 
44
import bzrlib, bzrlib.commands
48
45
 
49
46
if __name__ == '__main__':
50
 
    bzrlib.trace.enable_default_logging()
51
47
    sys.exit(bzrlib.commands.main(sys.argv))