URL:
<http://gna.org/bugs/?17413>
Summary: build fails if default python version is python3
Project: Freeciv
Submitted by: roywephy
Submitted on: Thu 30 Dec 2010 11:54:03 AM CET
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: trunk r18802
Discussion Lock: Any
Operating System: GNU/Linux
Planned Release:
_______________________________________________________
Details:
The script 'generate_packets.py' expects '/usr/bin/env python' to call
python2. If python3 is called, the build fails:
File "./generate_packets.py", line 44
print s
^
SyntaxError: invalid syntax
I am neither very fluent with python nor with the build system.
Suggestions:
- make 'generate_packets.py' work with python2 and python3
- check for python2 during configure, and exit if none is found
My (quick and dirty) fix for now was to replace "!/usr/bin/env python" with
"!/usr/bin/env python2".
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17413>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev