SyntaxError while running setup on Python 3

user@system ~/dalton $ ./setup
File "./setup", line 364
    os.makedirs(build_path, 0755)
                               ^
SyntaxError: invalid token

This occurs if default python version in environment is Python3+, and seems to be related to octal number representation. More here

Python2.7 works fine

user@system ~/dalton $ python2.7 setup
Configuring system: Ubuntu
...
Edited by Radovan Bast