Open GoogleCodeExporter opened 9 years ago
Having the same problem over here. Problem stems from this object not
inheriting from str/basetring.
https://hg.python.org/unittest2/file/bfdcdc6bdb89/setup.py#l13
Original comment by s...@thinkful.com
on 27 Nov 2014 at 6:33
Thanks for the bug report, I don't know if the obvious thing of adding
startswith will be enough to fix it - the --user code path may trigger
too-early evaluation of the version (so you might want to try using the wheel
if you can).
Give this patch a go:
diff -r 6ac850e23513 setup.py
--- a/setup.py Thu Mar 12 15:42:28 2015 +1300
+++ b/setup.py Thu Mar 12 15:51:13 2015 +1300
@@ -18,6 +18,8 @@
return str(self) + other
def replace(self, old, new):
return str(self).replace(old, new)
+ def startswith(self, other):
+ return str(self).startswith(other)
VERSION = late_version()
Original comment by robert.c...@gmail.com
on 12 Mar 2015 at 2:51
[deleted comment]
Why not extend basestring instead of object?
Original comment by s...@thinkful.com
on 12 Mar 2015 at 3:49
Original issue reported on code.google.com by
azeli...@redhat.com
on 13 Nov 2014 at 8:43