[Bug 4554] New: "make local" fails at parse stage with Python 3

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Feb 26 11:11:44 UTC 2015


http://bz.selenic.com/show_bug.cgi?id=4554

          Priority: normal
            Bug ID: 4554
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: "make local" fails at parse stage with Python 3
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: mercurial at achurch.org
          Hardware: PC
            Status: UNCONFIRMED
           Version: default branch
         Component: Mercurial
           Product: Mercurial

Created attachment 1815
  --> http://bz.selenic.com/attachment.cgi?id=1815&action=edit
setup-octal-constants-fix.diff

$ make local
python setup.py  \
  build_py -c -d . \
  build_ext  -i \
  build_hgexe  -i \
  build_mo
  File "setup.py", line 409
    setmode = 0755
                 ^
SyntaxError: invalid token
make: *** [local] Error 1
$ python --version
Python 3.4.2

Patch attached which changes the problematic constants to "0o..." style, but
that requires Python 2.7 or later.  If you want to support older versions of
Python for setup.py, you'll need to rewrite the constants as decimal or hex.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list