summaryrefslogtreecommitdiff
path: root/lib/spack/external/__init__.py
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-10-14 01:27:24 +0200
committerGitHub <noreply@github.com>2021-10-14 01:27:24 +0200
commitfcac95b0654a84151ad51a9123f74e8cdfcf8d26 (patch)
tree8205c2e2fd19e8f186ca94a5b5cb0ddb8ba40092 /lib/spack/external/__init__.py
parent0227fc3ddc4aead6b7e39b604af342c0f4840c2e (diff)
downloadspack-fcac95b0654a84151ad51a9123f74e8cdfcf8d26.tar.gz
spack-fcac95b0654a84151ad51a9123f74e8cdfcf8d26.tar.bz2
spack-fcac95b0654a84151ad51a9123f74e8cdfcf8d26.tar.xz
spack-fcac95b0654a84151ad51a9123f74e8cdfcf8d26.zip
Don't run lsb_release on linux (#26707)
Running `lsb_release` on Linux takes about 50ms because it is written in Python. We do not use the output, so this change makes use not call it.
Diffstat (limited to 'lib/spack/external/__init__.py')
-rw-r--r--lib/spack/external/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/external/__init__.py b/lib/spack/external/__init__.py
index b2acccd8cc..5b3e1741c8 100644
--- a/lib/spack/external/__init__.py
+++ b/lib/spack/external/__init__.py
@@ -38,6 +38,7 @@ distro
* Homepage: https://pypi.python.org/pypi/distro
* Usage: Provides a more stable linux distribution detection.
* Version: 1.0.4 (last version supporting Python 2.6)
+* Note: Patched to disable lsb_release by default to improve Spack's startup time.
functools
---------