From f52b52361c169919d15e826d932a52bb63b0d083 Mon Sep 17 00:00:00 2001 From: Lee-Ping Wang Date: Sun, 3 Nov 2019 12:55:55 -0800 Subject: [PATCH] Printout to ensure Python version is correct --- .travis.yml | 1 + devtools/scripts/create_conda_env.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1c3ed4972..1b4765e7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,6 +53,7 @@ before_install: install: # Create test environment for package + - echo "Calling create_conda_env.py with PYTHON_VER=$PYTHON_VER" - python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml # Activate the test environment - conda activate test diff --git a/devtools/scripts/create_conda_env.py b/devtools/scripts/create_conda_env.py index b51adc86d..d0df7a660 100644 --- a/devtools/scripts/create_conda_env.py +++ b/devtools/scripts/create_conda_env.py @@ -56,6 +56,8 @@ def temp_cd(): args = parser.parse_args() +print("PYTHON VERSION FROM ARGS {}".format(args.python)) + # Open the base file with open(args.conda_file, "r") as handle: yaml_script = loader(handle.read())