Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New python test script, rm old shell script #32

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions scripts/test_tutorial_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import os

commands = [
'git --version',
'python --version',
'python -c "import flake8"',
'python -c "import jupyter"',
'python -c "import jupyter"',
'python -c "import matplotlib"',
'python -c "import numpy"',
'python -c "import scipy"',
'python -c "import pytest"',
'python -c "import sphinx"',
]

# Check everything except conda
success_flag = True
for command in commands:
if os.system(command) != 0:
success_flag = False
print("Failure! %s failed" % command)

# Check conda because its magic setup does not let us just run it.
if not os.environ['CONDA_EXE'] or not os.environ['CONDA_PYTHON_EXE']:
print('Install check failed! Conda is not installed correctly!')
success_flag = False
else:
print('Conda installed and set in environment.')

# Final results
if success_flag is False:
print('Install check failed! Please see the above error messages. 🔥🔥🔥')
else:
print('Success! Everything has installed correctly. 😊😊😊')
69 changes: 0 additions & 69 deletions scripts/test_tutorial_install.sh

This file was deleted.