Skip to content

Commit

Permalink
Merge pull request #35 from moorepants/encoding
Browse files Browse the repository at this point in the history
Open version.py with utf-8 encoding, fixes #34.
  • Loading branch information
moorepants authored Sep 24, 2018
2 parents 3a8a25b + 98c55f1 commit 70f9aee
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@
import numpy as np
import six

exec(open('ipopt/version.py').read())
if six.PY3:
exec(open('ipopt/version.py', encoding="utf-8").read())
else:
exec(open('ipopt/version.py').read())

PACKAGE_NAME = 'ipopt'
VERSION = __version__
DESCRIPTION = 'A Cython wrapper to the IPOPT optimization package'
with open('README.rst') as f:
LONG_DESCRIPTION = f.read()
if six.PY3:
with open('README.rst', encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
else:
with open('README.rst') as f:
LONG_DESCRIPTION = f.read()
AUTHOR = 'Matthias Kümmerer'
EMAIL = 'matthias.kuemmerer@bethgelab.org'
URL = "https://github.com/matthias-k/cyipopt"
Expand Down

0 comments on commit 70f9aee

Please sign in to comment.