[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates updated: build/python: Handle FileNotFoundError exce
From: |
guix-commits |
Subject: |
branch core-updates updated: build/python: Handle FileNotFoundError exception in sanity-check.py. |
Date: |
Wed, 03 Feb 2021 21:59:38 -0500 |
This is an automated email from the git hooks/post-receive script.
apteryx pushed a commit to branch core-updates
in repository guix.
The following commit(s) were added to refs/heads/core-updates by this push:
new bb557c9 build/python: Handle FileNotFoundError exception in
sanity-check.py.
bb557c9 is described below
commit bb557c9ac19ab01cdf621c3fac887750981feb77
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Feb 3 21:56:53 2021 -0500
build/python: Handle FileNotFoundError exception in sanity-check.py.
This exception was thrown while running the sanity-check on the python-isort
package, which doesn't make use of a setuptools-based build system but
rather
of a PEP 517 compliant one.
* gnu/packages/aux-files/python/sanity-check.py: Handle the
FileNotFoundError
whe attempting to read the 'top_level.txt' metadata file of the package.
Remove extraneous 'continue' statement.
---
gnu/packages/aux-files/python/sanity-check.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/aux-files/python/sanity-check.py
b/gnu/packages/aux-files/python/sanity-check.py
index 355e55b..83b6d58 100644
--- a/gnu/packages/aux-files/python/sanity-check.py
+++ b/gnu/packages/aux-files/python/sanity-check.py
@@ -51,8 +51,10 @@ 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:
+ except (KeyError, FileNotFoundError):
# 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.
print('WARNING: cannot determine top-level modules')
continue
for name in metalines:
@@ -70,7 +72,6 @@ for dist in ws:
print('ERROR:')
traceback.print_exc(file=sys.stdout)
ret = 1
- continue
# Try to load entry points of console scripts too, making sure they
# work. They should be removed if they don't. Other groups may not be
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates updated: build/python: Handle FileNotFoundError exception in sanity-check.py.,
guix-commits <=