#95 build fails on python 1.5.2

MySQLdb-1.0
closed
Andy Dustman
MySQLdb (285)
5
2012-09-19
2004-07-28
Jon Ribbens
No

Contrary to the documentation, MySQLdb-1.0 does not
work on Python 1.5.2.

(a) setup.py uses os.getenv, which does not exist in
1.5.2. Fix is to replace with os.environ.get.

(b) _mysql.c uses PySequence_Size, which does not exist
in 1.5.2. Fix is to replace with PySequence_Length,
which appears to be the same function under a different
name.

Discussion

  • Andy Dustman
    Andy Dustman
    2004-09-06

    Logged In: YES
    user_id=71372

    Will be in 1.0.1b1

     
  • Andy Dustman
    Andy Dustman
    2004-09-06

    Logged In: YES
    user_id=71372

    This has been fixed in the current CVS tree.