File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -258,12 +258,15 @@ test_gpu()
258258show ()
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
You can’t perform that action at this time.
0 commit comments