mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
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.
This commit is contained in:
parent
b029be2ee0
commit
f8458a2282
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue