File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
{{ cookiecutter.repo_name }} Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 7
7
BUCKET = {{ cookiecutter.s3_bucket }}
8
8
PROJECT_NAME = {{ cookiecutter.repo_name }}
9
9
PYTHON_INTERPRETER = {{ cookiecutter.python_interpreter }}
10
- IS_ANACONDA =$(shell python -c "import sys;t=str('anaconda' in sys.version.lower() or 'continuum' in sys.version.lower());sys.stdout.write(t)")
10
+
11
+ ifeq (,$(shell which conda) )
12
+ HAS_CONDA =False
13
+ else
14
+ HAS_CONDA =True
15
+ endif
11
16
12
17
# ################################################################################
13
18
# COMMANDS #
@@ -39,8 +44,8 @@ sync_data_from_s3:
39
44
40
45
# # Set up python interpreter environment
41
46
create_environment :
42
- ifeq (True,$(IS_ANACONDA ) )
43
- @echo ">>> Detected Anaconda , creating conda environment."
47
+ ifeq (True,$(HAS_CONDA ) )
48
+ @echo ">>> Detected conda , creating conda environment."
44
49
ifeq (3,$(findstring 3,$(PYTHON_INTERPRETER ) ) )
45
50
conda create --name $(PROJECT_NAME) python=3.5
46
51
else
You can’t perform that action at this time.
0 commit comments