[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/150: build/python: Handle missing setuptools in sanity-check.py
From: |
guix-commits |
Subject: |
01/150: build/python: Handle missing setuptools in sanity-check.py |
Date: |
Sun, 24 Apr 2022 05:12:14 -0400 (EDT) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 720dbe22d431262938be29dd9a9ddb78c44a99b3
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 182133bb3d..1366b68e3d 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 d289fe92f7), guix-commits, 2022/04/24
- 01/150: build/python: Handle missing setuptools in sanity-check.py,
guix-commits <=
- 02/150: gnu: python{,2}-setuptools: Move to python-build., guix-commits, 2022/04/24
- 31/150: gnu: python-numba: Add missing build input., guix-commits, 2022/04/24
- 34/150: gnu: python-pycairo: Install headers and pkg-config files., guix-commits, 2022/04/24
- 07/150: gnu: python-pep517-bootstrap: Update to 0.12.0., guix-commits, 2022/04/24
- 11/150: gnu: pypy: Move to separate module., guix-commits, 2022/04/24
- 33/150: gnu: python-pylama: Fix tests., guix-commits, 2022/04/24
- 27/150: gnu: python-crashtest: Build using poetry-core., guix-commits, 2022/04/24
- 25/150: gnu: dblatex: Use custom 'build and 'install phases., guix-commits, 2022/04/24
- 23/150: gnu: python-branca: Disable tests., guix-commits, 2022/04/24
- 16/150: gnu: python-mediafile: Add missing build dependencies., guix-commits, 2022/04/24