11VERSION := 0.4.0
2- RELEASE := master
32
43# Include custom config if it is available
54-include Makefile.config
@@ -22,7 +21,6 @@ ANACONDA_HOME ?= $(HOME)/anaconda
2221CONDA_ENV ?= $(APP_NAME )
2322CONDA_ENVS_DIR ?= $(HOME ) /.conda/envs
2423CONDA_ENV_PATH := $(CONDA_ENVS_DIR ) /$(CONDA_ENV )
25- CONDA_PINNED := $(APP_ROOT ) /requirements/conda_pinned
2624
2725# Configuration used by update-config
2826HOSTNAME ?= localhost
@@ -32,9 +30,9 @@ OUTPUT_PORT ?= 8090
3230# choose anaconda installer depending on your OS
3331ANACONDA_URL = https://repo.continuum.io/miniconda
3432ifeq "$(OS_NAME ) " "Linux"
35- FN := Miniconda2 -latest-Linux-x86_64.sh
33+ FN := Miniconda3 -latest-Linux-x86_64.sh
3634else ifeq "$(OS_NAME)" "Darwin"
37- FN := Miniconda2 -latest-MacOSX-x86_64.sh
35+ FN := Miniconda3 -latest-MacOSX-x86_64.sh
3836else
3937FN := unknown
4038endif
7472 @echo " distclean to remove *all* files that are not controlled by 'git'. WARNING: use it *only* if you know what you do!"
7573 @echo " passwd to generate password for 'phoenix-password' in custom.cfg."
7674 @echo " export to export the conda environment. Caution! You always need to check it the enviroment.yml is working."
77- @echo " selfupdate to update this Makefile."
7875 @echo " \nSupervisor targets:"
7976 @echo " start to start supervisor service."
8077 @echo " stop to stop supervisor service."
@@ -104,17 +101,6 @@ backup:
104101 @echo " Backup custom config ..."
105102 @-test -f custom.cfg && cp -v --update --backup=numbered --suffix=.bak custom.cfg custom.cfg.bak
106103
107- .PHONY : .gitignore
108- .gitignore :
109- @echo " Setup default .gitignore ..."
110- @curl " https://raw.githubusercontent.com/bird-house/birdhousebuilder.bootstrap/$( RELEASE) /dot_gitignore" --silent --insecure --output .gitignore
111-
112- .PHONY : bootstrap.sh
113- bootstrap.sh :
114- @echo " Update bootstrap.sh ..."
115- @curl " https://raw.githubusercontent.com/bird-house/birdhousebuilder.bootstrap/$( RELEASE) /bootstrap.sh" --silent --insecure --output bootstrap.sh " https://raw.githubusercontent.com/bird-house/birdhousebuilder.bootstrap/$( RELEASE) /bootstrap.sh"
116- @chmod 755 bootstrap.sh
117-
118104custom.cfg :
119105 @echo " Using custom.cfg for buildout ..."
120106 @test -f custom.cfg || cp -v custom.cfg.example custom.cfg
@@ -159,11 +145,6 @@ conda_env: anaconda conda_config
159145 @test -d $(CONDA_ENV_PATH ) || " $( ANACONDA_HOME) /bin/conda" env create -n $(CONDA_ENV ) -f environment.yml
160146 " $( ANACONDA_HOME) /bin/conda" install -y -n $(CONDA_ENV ) setuptools=$(SETUPTOOLS_VERSION )
161147
162- .PHONY : conda_pinned
163- conda_pinned : conda_env
164- @echo " Update pinned conda packages ..."
165- @-test -d $(CONDA_ENV_PATH ) && test -f $(CONDA_PINNED ) && cp -f " $( CONDA_PINNED) " " $( CONDA_ENV_PATH) /conda-meta/pinned"
166-
167148.PHONY : export
168149export :
169150 @echo " Exporting conda enviroment ..."
@@ -172,7 +153,7 @@ export:
172153# # Build targets
173154
174155.PHONY : bootstrap
175- bootstrap : init conda_env conda_pinned bootstrap-buildout.py
156+ bootstrap : init conda_env bootstrap-buildout.py
176157 @echo " Bootstrap buildout ..."
177158 @test -f bin/buildout || bash -c " source $( ANACONDA_HOME) /bin/activate $( CONDA_ENV) ;python bootstrap-buildout.py -c custom.cfg --allow-site-packages --setuptools-version=$( SETUPTOOLS_VERSION) --buildout-version=$( BUILDOUT_VERSION) "
178159
@@ -261,10 +242,6 @@ doc8:
261242 @echo " Running doc8 doc style checks ..."
262243 $(CONDA_ENV_PATH ) /bin/doc8 docs/
263244
264- .PHONY : selfupdate
265- selfupdate : bootstrap.sh .gitignore
266- @curl " https://raw.githubusercontent.com/bird-house/birdhousebuilder.bootstrap/$( RELEASE) /Makefile" --silent --insecure --output Makefile
267-
268245# # Supervisor targets
269246
270247.PHONY : start
0 commit comments