diff --git a/operational b/operational index 5c486de8df822518eaadeceed30978ac5aa798a7..2fd4e4f26e96d0895d3fecb2a2ca4ccad0885011 100644 --- a/operational +++ b/operational @@ -39,6 +39,11 @@ see example ~/.pylintrc ** 2014-05-09 add sphinx support * later :entry: * done :entry: +** 2016-09-08 when bootstrap, create /var/log/{{name}} dir using sudo and chown to current user. +this makes it easier when developing. + +- just add it in bootstrap-dev. + ** DONE 2016-09-08 integrate sanity-check - update yygame-utils pkg version - in Makefile diff --git a/project.clj b/project.clj index c099b23973905c71256fd831e9192bd1725a6972..c534eef902a5b9dd947ac86985122061c12ecad5 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject python/lein-template "0.16.0" +(defproject python/lein-template "0.16.1" :description "lein template for a python project" :repositories [["snapshots" {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots" diff --git a/src/leiningen/new/python/Makefile b/src/leiningen/new/python/Makefile index 4391fedf322e266bf8ce1fdd7b1d9b3ce8a93c68..4d3fb3e67db26a54f16e074b3f8bd1428a0394fc 100644 --- a/src/leiningen/new/python/Makefile +++ b/src/leiningen/new/python/Makefile @@ -32,9 +32,14 @@ requirements: else \ $(PIP) install -q --find-links=wheelhouse $(REQUIREMENTS); \ fi +logdir: + @if [ ! -d /var/log/{{name}} ]; then \ + sudo mkdir /var/log/{{name}}; \ + sudo chown -R ${USER} /var/log/{{name}}; \ + fi bootstrap: venv requirements bootstrap-dev: REQUIREMENTS += -r requirements-dev.txt -bootstrap-dev: venv requirements +bootstrap-dev: venv requirements logdir install: bootstrap $(PYTHON) setup.py -q install uninstall: bootstrap @@ -49,7 +54,7 @@ wheel: bootstrap-dev $(PIP) wheel -w wheelhouse -f https://emacsos.com/python/packages/ $(REQUIREMENTS) check: just-test -sanity-check: +sanity-check: bootstrap $(PYTHON) {{name}}/sanity_check.py check-coding-style: bootstrap-dev $(PEP8) $(PYTHON_MODULES)