Closed GoogleCodeExporter closed 9 years ago
It wasn't purposely dropped. I was concentrating on building for both Python 2
& 3 simultaneously, but I didn't have the 2.5 compiler available on Windows.
Testing for 2.6, 2.7, 3.2 with 64-bit and 32-bit versions on 3 OSes was
tedious, but I will ensure 2.4 and 2.5 build.
Thanks for the heads up.
Original comment by mkleehammer
on 28 Dec 2011 at 10:28
I used tdm-gcc to build pyodbc for python 2.5.
You can download tdm-gcc installer from http://tdm-gcc.tdragon.net/download
After install tdm-gcc, add tdm-gcc\bin folder to PATH environment.
And, execute following command in command line.
d:\prj\pysrc_build\pyodbc_git>setup.py build -c mingw32 bdist_wininst
pyodbc installer builded well with python 2.6 and 2.7.
Original comment by marun...@gmail.com
on 29 Dec 2011 at 9:04
I too, wanted to try the new pyodbc together with python 2.5 and found these
problems.
I cloned the project and did some changes so that it built OK for me. I tried
it out on Linux and Solaris (since that's where I need to use Python2.5) and it
seems ok.
You can check it out yourself here:
https://code.google.com/r/pythoncurious-pyodbc-python25-support/
Mike, feel free to bring it into pyodbc if you think it is good enough.
some of the #if code isn't that pretty as it breaks up the blocks and there is
a place where the version check used to be for 2.6 instead of 3. Not sure if
that should have remained.
Have a look and see if it makes sense what I did.
If nothing else, I spend a few hours learning something :)
Original comment by pythoncurious
on 8 Jan 2012 at 1:04
Thank you.
pyodbc installer for python 2.5 is build without problem using
https://code.google.com/r/pythoncurious-pyodbc-python25-support/.
Also, simple test works well - connect, execute select query, print result,
close.
I will test more :)
Original comment by marun...@gmail.com
on 12 Jan 2012 at 4:50
Fixed in 3.0.4. I'm uploading an installer too. I've updated my primary
Windows box with the necessary compiler, so I'll generate 2.5 builds for all
new releases.
Thanks guys. I ultimately took a different approach and created the same
macros as byteobjects.h for previous versions of Python.
Original comment by mkleehammer
on 13 Jan 2012 at 7:28
That approach looks better than what I did. :) So for anyone who tries to
follow the link above: I'm discontinuing the fork I made.
Original comment by pythoncurious
on 15 Jan 2012 at 5:56
Original issue reported on code.google.com by
marun...@gmail.com
on 28 Dec 2011 at 5:04