Skip to content

Instantly share code, notes, and snippets.

@aprxi
Created September 26, 2019 15:15
Show Gist options
  • Save aprxi/bf555a87f14387d3331b1be7e5d21dc1 to your computer and use it in GitHub Desktop.
Save aprxi/bf555a87f14387d3331b1be7e5d21dc1 to your computer and use it in GitHub Desktop.
Makefile-makepip
.PHONY: module
module:
@# ensure there is a symlink from MODULE_NAME to module directory
@# then run regular setup.py to build the module
$(RUN_DOCK) "cd ~/$(MODULE_NAME) \
&& find ./ -type l -maxdepth 1 |xargs rm -f \
&& ln -sf module "$(MODULE_NAME)" \
&& python3 setup.py sdist"
.PHONY: pylint
pylint:
$(RUN_DOCK) "cd ~/$(MODULE_NAME)/module \
&& pylint --rcfile=../.pylintrc * -f parseable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment