summaryrefslogtreecommitdiff
path: root/src/buildstream/testing/_utils/site.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-05-31 17:00:47 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 14:33:59 +0000
commit3b56da44bdafeff1237391ad9edbb73010bcd5ee (patch)
tree25834089a4e679cfbaa16e720889b1e80ed52840 /src/buildstream/testing/_utils/site.py
parent75fb7e0bf5516ffcc812361410989b022921e520 (diff)
downloadbuildstream-3b56da44bdafeff1237391ad9edbb73010bcd5ee.tar.gz
test:utils/site: Consolidate arpy environment variables in a single place
We have two different 'site' files that are redundant and both define some variables in BuildStream environment. Moving all the arpy related ones in a single place.
Diffstat (limited to 'src/buildstream/testing/_utils/site.py')
-rw-r--r--src/buildstream/testing/_utils/site.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py
index 306f41c9f..9d18d89bd 100644
--- a/src/buildstream/testing/_utils/site.py
+++ b/src/buildstream/testing/_utils/site.py
@@ -55,6 +55,12 @@ try:
except ProgramNotFoundError:
HAVE_LZIP = False
+try:
+ import arpy # pylint: disable=unused-import
+ HAVE_ARPY = True
+except ImportError:
+ HAVE_ARPY = False
+
IS_LINUX = os.getenv('BST_FORCE_BACKEND', sys.platform).startswith('linux')
IS_WSL = (IS_LINUX and 'Microsoft' in platform.uname().release)
IS_WINDOWS = (os.name == 'nt')