added style check guard to python build
This commit is contained in:
parent
51781bb7a8
commit
899cb63952
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue