[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/103: build/python: Handle missing setuptools in sanity-check.py
From: |
guix-commits |
Subject: |
01/103: build/python: Handle missing setuptools in sanity-check.py |
Date: |
Wed, 5 Jan 2022 09:44:27 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit a2022e6515113358e0e0b87755639f16c9250614
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Feb 19 17:22:35 2021 +0100
build/python: Handle missing setuptools in sanity-check.py
Just skip testing if required dependencies (setuptools) are not
available.
* gnu/packages/aux-files/python/sanity-check.py: Handle ImportError.
---
gnu/packages/aux-files/python/sanity-check.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/aux-files/python/sanity-check.py
b/gnu/packages/aux-files/python/sanity-check.py
index a84f8f03c0..944a167e57 100644
--- a/gnu/packages/aux-files/python/sanity-check.py
+++ b/gnu/packages/aux-files/python/sanity-check.py
@@ -19,9 +19,13 @@
from __future__ import print_function # Python 2 support.
import importlib
-import pkg_resources
import sys
import traceback
+try:
+ import pkg_resources
+except ImportError:
+ print('Warning: Skipping, because python-setuptools are not available.')
+ sys.exit(0)
try:
from importlib.machinery import PathFinder
- branch wip-python-pep517 created (now 4968ef975c), guix-commits, 2022/01/05
- 03/103: gnu: Properly bootstrap python-flit-core and python-tomli., guix-commits, 2022/01/05
- 01/103: build/python: Handle missing setuptools in sanity-check.py,
guix-commits <=
- 04/103: gnu: python-pep517-bootstrap: Update to 0.12.0., guix-commits, 2022/01/05
- 05/103: gnu: python-pypa-build: Replace toml with tomli., guix-commits, 2022/01/05
- 08/103: gnu: pypy: Move to separate module., guix-commits, 2022/01/05
- 14/103: gnu: python-testpath: Remove custom build phases., guix-commits, 2022/01/05
- 11/103: gnu: python-pyzmq: Fix #:configure-flags type., guix-commits, 2022/01/05
- 12/103: gnu: python-file: Remove obsolete #:configure-flags., guix-commits, 2022/01/05
- 09/103: gnu: python-charset-normalizer: Add missing input., guix-commits, 2022/01/05
- 13/103: gnu: python-mediafile: Add missing build dependencies., guix-commits, 2022/01/05
- 17/103: gnu: gusb-minimal: Add explicit dependency on setuptools., guix-commits, 2022/01/05
- 20/103: gnu: python-branca: Disable tests., guix-commits, 2022/01/05