Menu

#14 Making location of mysql_config configurable

open
MySQLdb (19)
5
2012-09-19
2007-02-16
No

mysql_config should be in the $PATH, but that is not always the case. In fact, it's never the case on my machines :)

Especially when working on 20 versions 'at ones', one doesn't put mysql stuff in the $PATH.

I made some changes to the setup_posix.py file so it reads the option mysql-config and uses that one instead of the one in $PATH.

So, it works this way: update site.cfg with

[options]
mysql-config = /data1/mysql/5.1.15/bin/mysql_config

doing ./setup.py build, the one defined in site.cfg will be used.

Patch attached against 1.2.2b3.

Hope this helps!

Discussion

  • Geert Vanderkelen

    Patch making location of mysql_config configurable.

     
  • Andy Dustman

    Andy Dustman - 2007-02-16

    Logged In: YES
    user_id=71372
    Originator: NO

    Looks reasonable, not applied yet

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.