[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Update of bug #17413 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Update of bug #17413 (project freeciv): Status:None = Ready For Test ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Update of bug #17413 (project freeciv): Assigned to:None = infyquest ___ Follow-up Comment #3: attaching a new version, it still might fail due to string operations, let me know since i dont have python 3.x ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Follow-up Comment #4, bug #17413 (project freeciv): patch missing (file #12294) ___ Additional Item Attachment: File name: trunk_python3_port_try2.diff Size:3 KB ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Follow-up Comment #5, bug #17413 (project freeciv): attaching complete python 3 port of generate_packets.py (file #12298) ___ Additional Item Attachment: File name: trunk_python3_port_complete.diff Size:10 KB ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Follow-up Comment #1, bug #17413 (project freeciv): Attaching the patch for python 3 port changes. Will commit soon, if you test the patch (file #11809) ___ Additional Item Attachment: File name: trunk_python3_port.diffSize:0 KB ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
Follow-up Comment #2, bug #17413 (project freeciv): Thanks for the patch. Unfortunately the build still fails (python-3.1.3): Traceback (most recent call last): File ./generate_packets.py, line 1848, in module main() File ./generate_packets.py, line 1519, in main content=strip_c_comment(content) File ./generate_packets.py, line 1498, in strip_c_comment for i in filter(lambda x:x,string.split(s,/*)): AttributeError: 'module' object has no attribute 'split' make[2]: *** [packets_generate] Error 1 with python-2.7.1 it still works. ___ Reply to this item at: http://gna.org/bugs/?17413 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17413] build fails if default python version is python3
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 Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev