Blob Blame History Raw
diff --git a/setup.py b/setup.py
index 64fe77a..73efaf1 100644
--- a/setup.py
+++ b/setup.py
@@ -7,10 +7,10 @@ import re
 site_packages_path = sysconfig.get_python_lib()
 try:
     sprem = re.match(
-        r'.*(lib[\\/](python\d(\.\d)*[\\/])?site-packages)', site_packages_path, re.I)
+        r'.*(lib[\\/](python\d(\.\d+)*[\\/])?site-packages)', site_packages_path, re.I)
     if sprem is None:
         sprem = re.match(
-            r'.*(lib[\\/](python\d(\.\d)*[\\/])?dist-packages)', site_packages_path, re.I)
+            r'.*(lib[\\/](python\d(\.\d+)*[\\/])?dist-packages)', site_packages_path, re.I)
     rel_site_packages = sprem.group(1)
 except Exception as exc:
     print("I'm having trouble finding your site-packages directory.  Is it where you expect?")