added style check guard to python build

This commit is contained in:
Alec Grieser 2018-01-26 13:13:15 -08:00
parent 51781bb7a8
commit 899cb63952
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,7 @@ else
PYVER = $(VERSION)a1
endif
fdb_python: bindings/python/fdb/fdboptions.py bindings/python/setup.py
fdb_python: bindings/python/fdb/fdboptions.py bindings/python/setup.py fdb_python_check
bindings/python/fdb/fdboptions.py: bin/vexillographer.exe fdbclient/vexillographer/fdb.options
@echo "Building $@"
@ -43,6 +43,10 @@ bindings/python/setup.py: bindings/python/setup.py.in $(ALL_MAKEFILES) versions.
@echo "Generating $@"
@m4 -DVERSION=$(PYVER) $< > $@
fdb_python_check: bindings/python/setup.py bindings/python/fdb/*.py bindings/python/tests/*.py
@echo "Checking fdb_python"
@bash -c "if which pycodestyle &> /dev/null ; then pycodestyle bindings/python --config=bindings/python/setup.cfg ; else echo \"Skipped Python style check! Missing: pycodestyle\"; fi"
fdb_python_sdist: fdb_python
@mkdir -p packages
@rm -rf bindings/python/dist