From ace4eac581ebdd507c5e3867bd7f73b7f67133b6 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Dec 09 2016 15:14:02 +0000 Subject: Fix rewheel's module regex (related upstream issue27364 and issue28128). Enable tests. --- diff --git a/00189-add-rewheel-module.patch b/00189-add-rewheel-module.patch index 5d514be..53a26ca 100644 --- a/00189-add-rewheel-module.patch +++ b/00189-add-rewheel-module.patch @@ -119,7 +119,7 @@ diff -Nur Python-3.4.1/Lib/ensurepip/rewheel/__init__.py Python-3.4.1-rewheel/Li + for project in projects: + path = None + for sp in sys_sitepack: -+ dist_info_re = os.path.join(sp, project) + '-[^\{0}]+\.dist-info'.format(os.sep) ++ dist_info_re = os.path.join(sp, project) + r'-[^\{0}]+\.dist-info'.format(os.sep) + candidates = [os.path.join(sp, p) for p in os.listdir(sp)] + # filter out candidate dirs based on the above regexp + filtered = [c for c in candidates if re.match(dist_info_re, c)] diff --git a/python3.spec b/python3.spec index a66c9e8..6d3ef9b 100644 --- a/python3.spec +++ b/python3.spec @@ -87,7 +87,7 @@ %global with_computed_gotos yes # Turn this to 0 to turn off the "check" phase: -%global run_selftest_suite 0 +%global run_selftest_suite 1 # We want to byte-compile the .py files within the packages using the new # python3 binary.