Skip to content

Commit

Permalink
make install
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraheim committed Sep 15, 2024
1 parent ad377cd commit c6458b7
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,34 @@ setup.py.tmp: Makefile
echo "import setuptools ; setuptools.setup()" > setup.py

.PHONY: build
src-files:
$(MAKE) $(PARALLEL) setup.py src/README.md src/systemctl.py src/systemctl.pyi
src-remove:
- rm -v setup.py src/README.md src/systemctl.py src/systemctl.pyi
- rmdir src

build:
rm -rf build dist *.egg-info
$(MAKE) $(PARALLEL) setup.py src/README.md src/systemctl.py src/systemctl.pyi
$(MAKE) src-files
# pip install --root=~/local . -v
$(PYTHON3) setup.py sdist
- rm -v setup.py src/README.md src/systemctl.py src/systemctl.pyi
- rmdir src
$(MAKE) src-remove
$(TWINE) check dist/*
: $(TWINE) upload dist/*

ins install:
$(MAKE) src-files
$(PYTHON3) -m pip install --no-compile --user .
$(MAKE) src-remove
$(MAKE) show | sed -e "s|[.][.]/[.][.]/[.][.]/bin|$$HOME/.local/bin|"
show:
test -d tmp || mkdir -v tmp
cd tmp && $(PYTHON3) -m pip show -f $$(sed -e '/^name *=/!d' -e 's/.*= *//' ../setup.cfg)
uns uninstall:
test -d tmp || mkdir -v tmp
cd tmp && $(PYTHON3) -m pip uninstall -v --yes $$(sed -e '/^name *=/!d' -e 's/.*= *//' ../setup.cfg)


####### autopep8
AUTOPEP8=autopep8
AUTOPEP8_WITH=
Expand Down

0 comments on commit c6458b7

Please sign in to comment.