Skip to content

Commit

Permalink
Make PyMySQL work in the package generated by py2exe
Browse files Browse the repository at this point in the history
Setting the 'optimize' level to 2 was causing pymysql imports to
fail. This sets the 'optimize' level to 1 solving the issue.

This is equivalent to the change in d713b36 for py2app.
  • Loading branch information
ethanwhite committed Feb 7, 2014
1 parent 6aa377a commit b0766bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def clean_version(v):
# to bundle_files = 3 and Inno Setup
options = {'py2exe': {'bundle_files': 3,
'compressed': 2,
'optimize': 2,
'optimize': 1,
'packages': packages,
'includes': includes,
'excludes': excludes,
Expand Down

0 comments on commit b0766bb

Please sign in to comment.