Mailing List Archive

Building mySQL-python with python 2.6
Hi, I am trying to build mySQL-python with python 2.6 on windows and
can't figure what's wrong with it.

D:\temp\mysqlPyC\MySQL–python–1.2.3c1>python setup.py build
running build
running build_py
copying MySQLdb\release.py –> build\lib.win32–2.6\MySQLdb
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat

the vcvarsall.bat is in %path% though:

D:\temp\mysqlPyC\MySQL–python–1.2.3c1>vcvarsall.bat
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

Are there python settings that point to specific compiler directory or
something that I need to change/update?
--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
abolotnov schrieb:
> Hi, I am trying to build mySQL-python with python 2.6 on windows and
> can't figure what's wrong with it.
>
> D:\temp\mysqlPyC\MySQL–python–1.2.3c1>python setup.py build
> running build
> running build_py
> copying MySQLdb\release.py –> build\lib.win32–2.6\MySQLdb
> running build_ext
> building '_mysql' extension
> error: Unable to find vcvarsall.bat
>
> the vcvarsall.bat is in %path% though:
>
> D:\temp\mysqlPyC\MySQL–python–1.2.3c1>vcvarsall.bat
> Setting environment for using Microsoft Visual Studio 2010 x86 tools.

You need Visual Studio 2008. Other versions of VS aren't supported by
Python 2.6.

Christian
--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
> You need Visual Studio 2008. Other versions of VS aren't supported by
> Python 2.6.

Aren't 2005, 2008+ versions all have same c compiler - it's just the
IDE versions that are different?
--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
abolotnov schrieb:
>> You need Visual Studio 2008. Other versions of VS aren't supported by
>> Python 2.6.
>
> Aren't 2005, 2008+ versions all have same c compiler - it's just the
> IDE versions that are different?

There are important differences between the several versions of VC++.
The most important discrepancy is the runtime library version. Each
version of Visual Studio uses its own msvcrt dll. The command line
options, deprecated functions, project file formats and other things are
also slightly different.

Christian
--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
Christian Heimes wrote:
> abolotnov schrieb:
>> Hi, I am trying to build mySQL-python with python 2.6 on windows and
>> can't figure what's wrong with it.
...
> You need Visual Studio 2008. Other versions of VS aren't supported by
> Python 2.6.

You might be able to use mingw32 as well.

--Scott David Daniels
Scott.Daniels@Acm.Org
--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
> You might be able to use mingw32 as well.

say I obtain and install "an alternative" compiler. how do I tell
python which one to use?

I am sorry for asking dumb questions. Can't find the answers in the
docs/mans.
--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
abolotnov wrote:
> say I obtain and install "an alternative" compiler. how do I tell
> python which one to use?
>
> I am sorry for asking dumb questions. Can't find the answers in the
> docs/mans.

http://docs.python.org/install/index.html#gnu-c-cygwin-mingw

Christian

--
http://mail.python.org/mailman/listinfo/python-list
Re: Building mySQL-python with python 2.6 [ In reply to ]
On 28 mayo, 02:16, abolotnov <abolot...@gmail.com> wrote:

> say I obtain and install "an alternative" compiler. how do I tell
> python which one to use?

VS2008 Express Edition is available for free from the Microsoft site.

--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list