diff -Nru python3.10-3.10.2/debian/changelog python3.10-3.10.2/debian/changelog --- python3.10-3.10.2/debian/changelog 2022-02-26 08:21:15.000000000 +0000 +++ python3.10-3.10.2/debian/changelog 2022-03-05 23:50:26.000000000 +0000 @@ -1,3 +1,10 @@ +python3.10 (3.10.2-5ubuntu1) jammy; urgency=medium + + * debian/patches/sysconfig-debian-schemes.patch: Correct the test for + virtual environments. (Closes: #1006707, LP: #1962791) + + -- Anders Kaseorg Sat, 05 Mar 2022 23:50:26 +0000 + python3.10 (3.10.2-5) unstable; urgency=medium * Fix the marshal test after applying the fix for #1004558. diff -Nru python3.10-3.10.2/debian/patches/sysconfig-debian-schemes.diff python3.10-3.10.2/debian/patches/sysconfig-debian-schemes.diff --- python3.10-3.10.2/debian/patches/sysconfig-debian-schemes.diff 2022-02-14 16:46:56.000000000 +0000 +++ python3.10-3.10.2/debian/patches/sysconfig-debian-schemes.diff 2022-03-05 23:50:26.000000000 +0000 @@ -45,7 +45,7 @@ 'user': 'osx_framework_user', } + -+ if 'real_prefix' in sys.__dict__ or 'VIRTUAL_ENV' in os.environ: ++ if sys.base_prefix != sys.prefix: + # virtual environments + prefix_scheme = 'posix_prefix' + else: