Fix for Python3.
This commit is contained in:
parent
eed0269bb1
commit
3f4bb06faf
1 changed files with 1 additions and 4 deletions
5
setup.py
5
setup.py
|
@ -219,10 +219,7 @@ class MyDistribution (Distribution, object):
|
|||
for name in metanames:
|
||||
method = "get_" + name
|
||||
val = getattr(self.metadata, method)()
|
||||
if isinstance(val, str):
|
||||
val = unicode(val)
|
||||
cmd = "%s = %r" % (name, val)
|
||||
data.append(cmd)
|
||||
data.append("%s = %r" % (name, val))
|
||||
data.append('release_date = "%s"' % get_release_date())
|
||||
# write the config file
|
||||
util.execute(write_file, (filename, data),
|
||||
|
|
Loading…
Reference in a new issue