[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates-frozen updated: build-system/python: Handle missing
From: |
guix-commits |
Subject: |
branch core-updates-frozen updated: build-system/python: Handle missing metadata on Python 2. |
Date: |
Fri, 30 Jul 2021 09:55:47 -0400 |
This is an automated email from the git hooks/post-receive script.
mbakke pushed a commit to branch core-updates-frozen
in repository guix.
The following commit(s) were added to refs/heads/core-updates-frozen by this
push:
new f8458a2 build-system/python: Handle missing metadata on Python 2.
f8458a2 is described below
commit f8458a228224942298e0967a099f872c13713ede
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jul 30 15:54:31 2021 +0200
build-system/python: Handle missing metadata on Python 2.
* gnu/packages/aux-files/python/sanity-check.py: Catch the less specific
EnvironmentError rather than FileNotFoundError as the latter is Python 3
only.
---
gnu/packages/aux-files/python/sanity-check.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/aux-files/python/sanity-check.py
b/gnu/packages/aux-files/python/sanity-check.py
index 83b6d58..a84f8f0 100644
--- a/gnu/packages/aux-files/python/sanity-check.py
+++ b/gnu/packages/aux-files/python/sanity-check.py
@@ -51,7 +51,7 @@ for dist in ws:
# Try to load top level modules. This should not have any side-effects.
try:
metalines = dist.get_metadata_lines('top_level.txt')
- except (KeyError, FileNotFoundError):
+ except (KeyError, EnvironmentError):
# distutils (i.e. #:use-setuptools? #f) will not install any metadata.
# This file is also missing for packages built using a PEP 517 builder
# such as poetry.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates-frozen updated: build-system/python: Handle missing metadata on Python 2.,
guix-commits <=