Porting to python 3

Rob Reilink <[email protected]> Wed, 28 Mar 2012 12:40:48 +0200
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
--===============2707190032236229517==
Content-Type: multipart/alternative; boundary=Apple-Mail-42-289247183


--Apple-Mail-42-289247183
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi,

I'd like to help porting pyopengl to Python 3.=20

I noticed there is already a Python 3 branch on launchpad made mainly =
using the 2to3 tool. However, I can imagine that this branch cannot be =
merged with the main branch since that would make pyopengl incompatible =
with Python 2. My suggested approach would be to use the 'use_2to3' flag =
of setuptools to make the source tree compatible with both python 2 and =
3 as discussed here: http://packages.python.org/distribute/python3.html =
. The basic idea is that the 2to3 conversion (possibly with custom =
fixers) is done at build/install time.

As I understood from a colleague of mine (Almar Klein) who had discussed =
porting to Py3 with Mike Fletcher a while ago, one of the issues was =
that the 'testsuite' that was used for testing PyOpenGl is also written =
in Py2 and thus needs porting before rigorous testing could be =
performed. With the proposed approach, the source code can still be =
tested under Py2 with the existing test suite. Until a proper Py3 test =
suite comes available, Py3 support could be denominated as 'untested'. =
The toolkit that we will be using PyOpenGl for (visvis, =
http://code.google.com/p/visvis/) will be ported by us and will as such =
be a basic test for PyOpenGL under Py3

I'd like to have suggestions on how to proceed in such a way that my =
efforts can eventually be taken into the main branch, such that the time =
spent by us (Sience Applied) will eventually be of benefit to all =
PyOpenGL users.

Regards,

Rob

---------------------------------------------
Rob Reilink, M.Sc
Science Applied
www.science-applied.nl
---------------------------------------------





--Apple-Mail-42-289247183
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">Hi,<div><br></div><div>I'd like to help porting pyopengl to Python =
3.&nbsp;</div><div><br></div><div>I noticed there is already a Python 3 =
branch on launchpad made mainly using the 2to3 tool. However, I can =
imagine that this branch cannot be merged with the main branch since =
that would make pyopengl incompatible with Python 2. My suggested =
approach would be to use the 'use_2to3' flag of setuptools to make the =
source tree compatible with both python 2 and 3 as discussed =
here:&nbsp;<a =
href=3D"http://packages.python.org/distribute/python3.html">http://package=
s.python.org/distribute/python3.html</a> . The basic idea is that the =
2to3 conversion (possibly with custom fixers) is done at build/install =
time.</div><div><br></div><div>As I understood from a colleague of mine =
(Almar Klein) who had discussed porting to Py3 with Mike Fletcher a =
while ago, one of the issues was that the 'testsuite' that was used for =
testing PyOpenGl is also written in Py2 and thus needs porting before =
rigorous testing could be performed. With the proposed approach, the =
source code can still be tested under Py2 with the existing test suite. =
Until a proper Py3 test suite comes available, Py3 support could be =
denominated as 'untested'. The toolkit that we will be using PyOpenGl =
for (visvis, <a =
href=3D"http://code.google.com/p/visvis/">http://code.google.com/p/visvis/=
</a>) will be ported by us and will as such be a basic test for PyOpenGL =
under Py3</div><div><br></div><div>I'd like to have suggestions on how =
to proceed in such a way that my efforts can eventually be taken into =
the main branch, such that the time spent by us (Sience Applied) will =
eventually be of benefit to all PyOpenGL =
users.</div><div><br></div><div>Regards,</div><div><br></div><div>Rob</div=
><div><br></div><div><div>
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: =
0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; color: =
rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: =
normal; font-weight: normal; letter-spacing: normal; line-height: =
normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; =
"><div>---------------------------------------------<br>Rob Reilink, =
M.Sc<br>Science Applied</div><div><a =
href=3D"http://www.science-applied.nl">www.science-applied.nl</a></div><di=
v>---------------------------------------------</div><div><br></div></div>=
</span><br class=3D"Apple-interchange-newline"></span><br =
class=3D"Apple-interchange-newline">
</div>
<br></div></body></html>=

--Apple-Mail-42-289247183--


--===============2707190032236229517==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--===============2707190032236229517==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel

--===============2707190032236229517==--