[PATCH] v1.2 setup.py fails under python 2.3.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Jari Aalto |
Bug Description
Consider this:
python setup.py install --home $HOME
Traceback (most recent call last):
File "setup.py", line 12, in ?
import bzrlib
File "/mnt/cc/
from bzrlib.osutils import get_user_encoding
File "/mnt/cc/
from stat import (S_ISREG, S_ISDIR, S_ISLNK, ST_MODE, ST_SIZE,
SyntaxError: invalid syntax
$ python -V
Python 2.3.5
SUGGESTION
Please apply following patch to next bzr release
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,10 @@ Run it with
import os
import sys
+if sys.hexversion < 0x20400F0:
+ print >>sys.stderr, [ERROR] Not a supported Python version. Need 2.4+
+ sys.exit(1)
+
import bzrlib
##
Missing quotes; were stripped:
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,10 @@ Run it with
import os
import sys
+if sys.hexversion < 0x20400F0:
+ print >>sys.stderr, "[ERROR] Not a supported Python version. Need 2.4+"
+ sys.exit(1)
+
import bzrlib
##