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:
|
for name in metanames:
|
||||||
method = "get_" + name
|
method = "get_" + name
|
||||||
val = getattr(self.metadata, method)()
|
val = getattr(self.metadata, method)()
|
||||||
if isinstance(val, str):
|
data.append("%s = %r" % (name, val))
|
||||||
val = unicode(val)
|
|
||||||
cmd = "%s = %r" % (name, val)
|
|
||||||
data.append(cmd)
|
|
||||||
data.append('release_date = "%s"' % get_release_date())
|
data.append('release_date = "%s"' % get_release_date())
|
||||||
# write the config file
|
# write the config file
|
||||||
util.execute(write_file, (filename, data),
|
util.execute(write_file, (filename, data),
|
||||||
|
|
Loading…
Reference in a new issue