updates
This commit is contained in:
parent
79c9ac434a
commit
c693937271
11 changed files with 73 additions and 51 deletions
16
Makefile
16
Makefile
|
@ -1,12 +1,24 @@
|
|||
PREFIX=/usr/local
|
||||
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
|
||||
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
|
||||
PYTHON_MINOR=`python3 --version 2>&1 | sed -e 's@^.* @@' -e 's@\.[0-9]*$$@@'`
|
||||
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
|
||||
DOCTEST=${LOCAL_DOCTEST}
|
||||
MOD=exclude_badExits
|
||||
|
||||
all:: README.md exclude_badExits.hlp
|
||||
|
||||
exclude_badExits.hlp:: src/exclude_badExits/__main__.py
|
||||
PYTHONPATH=${PWD}/src \
|
||||
${PYTHON_EXE_MSYS} -m exclude_badExits --help > exclude_badExits.hlp
|
||||
|
||||
README.md:: src/exclude_badExits/__main__.py
|
||||
PYTHONPATH=${PWD}/src \
|
||||
${PYTHON_EXE_MSYS} -c 'from exclude_badExits.__main__ import __doc__; print(__doc__)' \
|
||||
> README.md
|
||||
|
||||
check::
|
||||
sh python3.sh -c "import ${MOD}"
|
||||
sh ${PYTHON_EXE_MSYS} -c "import ${MOD}"
|
||||
|
||||
lint::
|
||||
sh .pylint.sh
|
||||
|
@ -16,6 +28,8 @@ install::
|
|||
--no-deps \
|
||||
--target ${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/ \
|
||||
--upgrade .
|
||||
sed -i -e "1s@/usr/bin/python${PYTHON_MINOR}@${PYTHON_EXE_MSYS}@" \
|
||||
${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/bin/*
|
||||
|
||||
rsync::
|
||||
bash .rsync.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue