farcepest / MySQLdb1

MySQL database connector for Python (legacy version)

Home Page:https://sourceforge.net/projects/mysql-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extra_link_args=['/MANIFEST'] in setup_windows.py

tkhyn opened this issue · comments

Hi there,

Just ran into a small issue when trying to install mysqldb 1.2.5 from source on windows (I'm using zc.buildout for dependencies management in dev and deployment, so can't use the windows installer) and python 2.7.

The issue was related to a manifest file not generated, described in an old python bug report here http://bugs.python.org/issue4431. This discussion provides a way to solve it: I simply had to modify setup_windows.py and add extra_link_args=['/MANIFEST'] to the ext_options dictionary.

I would also like make a suggestion to add several connector paths in the site.cfg, to handle win32 platforms (with C:\Program Files instead of C:\Program Files (x86) ). So that win32 users would not have to download the archive and edit site.cfg.

I can submit a pull request for these changes, or leave you implement them.

Thanks.

Thomas

Pull request, please

On Wed, Apr 2, 2014 at 6:06 PM, Thomas Khyn notifications@github.comwrote:

Hi there,

Just ran into a small issue when trying to install mysqldb from source on
windows (I'm using zc.buildout for dependencies management in dev and
deployment, so can't use the windows installer) and python 2.7.

The issue was related to a manifest file not generated, described in an
old python bug report here http://bugs.python.org/issue4431. The
discussion below gives a way to solve it: I simply had to modify
setup_windows.py and add extra_link_args=['/MANIFEST'] to the ext_options
dictionary.

I would also like make a suggestion to add several connector paths in the
site.cfg, to handle win32 platforms (with C:\Program Files instead of
C:\Program Files (x86) ). So that win32 users would not have to download
the archive and edit site.cfg.

I can submit a pull request for these changes, or leave you implement them.

Thanks.

Thomas


Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.

Question the answers