diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ import os.path
 dirname = os.path.dirname(os.path.abspath(__file__))
 filename = os.path.join(dirname, 'kdtree.py')
 src = open(filename).read()
-metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", src))
+metadata = dict(re.findall("__([a-z]+)__ = u?'([^']+)'", src))
 docstrings = re.findall('"""([^"]+)"""', src)
 
 PACKAGE = 'kdtree'
fix regex in setup.py for unicode strings