Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2017 20:55:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 223854] x11-toolkits/py-wxPython-common: invalid syntax during build
Message-ID:  <bug-223854-21822-0eKS4yNYqk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223854-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223854-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Charlie Li <ml+freebsd-bugs@vishwin.info> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to FreeBSD Python
<python@FreeBSD.org>:
Bug 223854: x11-toolkits/py-wxPython-common: invalid syntax during build
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223854



--- Description ---
On systems with Python 3 set in DEFAULT_VERSIONS, the build fails with a Py=
thon
2-ism syntax error:

=3D=3D=3D>  Building for py36-wxPython-common-3.0.2.0_4
/usr/local/bin/python3.6 /usr/local/lib/python3.6/compileall.py -d
/usr/local/lib/python3.6/site-packages -f
/wrkdirs/usr/ports/x11-toolkits/py-wxPython-common/work/wxPython-src-3.0.2.=
0/wx
Python/wxversion
Listing
'/wrkdirs/usr/ports/x11-toolkits/py-wxPython-common/work/wxPython-src-3.0.2=
.0/w
xPython/wxversion'...
Compiling
'/wrkdirs/usr/ports/x11-toolkits/py-wxPython-common/work/wxPython-src-3.0.2=
.0/w
xPython/wxversion/wxversion.py'...
***   File "/usr/local/lib/python3.6/site-packages/wxversion.py", line 430
    print "Asked for %s, (%s):\t got: %s" % (version, optionsRequired,
sys.path[0])
					^
SyntaxError: invalid syntax

*** Error code 1

Stop.
make: stopped in /usr/ports/x11-toolkits/py-wxPython-common

I have a feeling this code was never intended to execute on Python 3 at all=
, so
maybe restricting to Python 2 would be good.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223854-21822-0eKS4yNYqk>