MySQL-mod: setup-error: invalid distrib.option 'platforms'

Bernard Yue bernie at 3captus.com
Sun Mar 17 17:09:22 EST 2002


Florian Konnertz wrote:
> 
> Hi! Any idea how to solve this prob?
> 
> root at xy /usr/local/mysql/MySQL-python-0.9.1 > python setup.py build
> error in setup script: invalid distribution option 'platforms'
> 
> OS: SuSe 7.2
> Python 2.0
> MySQL: /usr/local/mysql/bin/mysql
>         Ver 11.17 Distrib 3.23.49a, for pc-linux-gnu (i686)
> 
> In setup.py I changed the following var. to my local paths:
> ...
> if sys.platform in ("linux-i386", "linux2"): # most Linux
>      include_dirs = ['/usr/local/mysql/include/mysql']
> #    include_dirs = ['/usr/include/mysql']
>      library_dirs = ['/usr/local/mysql/lib']
> #    library_dirs = ['/usr/lib/mysql']
> 
> I appreciate your help!  What's wrong?  Are my paths too irregular?
> Thanx.

I've use Suse 7.3 with Python 2.1.1 and MySQL 3.23.46 (installed on
/usr/local/mysql) and does not encounter the problem you are facing
(BTW, same MySQL-python).  Are you willing to upgrade your Python to
give it a try?


Bernie


-- 
There are three schools of magic.  One:  State a tautology, then ring
the changes on its corollaries; that's philosophy.  Two:  Record many
facts.  Try to find a pattern.  Then make a wrong guess at the next
fact; that's science.  Three:  Be aware that you live in a malevolent
Universe controlled by Murphy's Law, sometimes offset by Brewster's
Factor; that's engineering.
                -- Robert A. Heinlein



More information about the Python-list mailing list