Skip to content

Commit e7bb2b8

Browse files
committed
Minor change
1 parent 268c78e commit e7bb2b8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,15 @@ test_gpu()
258258
show()
259259
{
260260
echo "Current working directory: " `pwd`
261-
echo "Black version: " `python -c "import black; print(black.__version__)"`
262-
echo "Flake8 version: " `python -c "import flake8; print(flake8.__version__)"`
261+
echo "Black version: " `python -c 'exec("try:\n\timport black;\n\tprint(black.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
262+
echo "Flake8 version: " `python -c 'exec("try:\n\timport flake8;\n\tprint(flake8.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
263263
echo "Python version: " `python -c "import platform; print(platform.python_version())"`
264-
echo "NumPy version: " `python -c "import numpy; print(numpy.__version__)"`
265-
echo "SciPy version: " `python -c "import scipy; print(scipy.__version__)"`
266-
echo "Numba version: " `python -c "import numba; print(numba.__version__)"`
264+
echo "NumPy version: " `python -c 'exec("try:\n\timport numpy;\n\tprint(numpy.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
265+
echo "SciPy version: " `python -c 'exec("try:\n\timport scipy;\n\tprint(scipy.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
266+
echo "Numba version: " `python -c 'exec("try:\n\timport numba;\n\tprint(numba.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
267+
echo "Dask version: " `python -c 'exec("try:\n\timport dask;\n\tprint(dask.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
268+
echo "Distributed version: " `python -c 'exec("try:\n\timport distributed;\n\tprint(distributed.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
269+
echo "PyTest version: " `python -c 'exec("try:\n\timport pytest;\n\tprint(pytest.__version__);\nexcept ModuleNotFoundError:\n\tprint(\"Module Not Found\");")'`
267270
exit 0
268271
}
269272

0 commit comments

Comments
 (0)