2024-01-15 12:09:20 +01:00
|
|
|
PREFIX=/usr/local
|
2024-02-05 09:14:23 +01:00
|
|
|
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
|
|
|
|
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
|
2024-02-24 08:32:50 +01:00
|
|
|
PYTHON_MINOR=`python3 --version 2>&1 | sed -e 's@^.* @@' -e 's@\.[0-9]*$$@@'`
|
2024-01-15 12:09:20 +01:00
|
|
|
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
|
|
|
|
DOCTEST=${LOCAL_DOCTEST}
|
|
|
|
MOD=exclude_badExits
|
|
|
|
|
2024-02-24 08:32:50 +01:00
|
|
|
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
|
|
|
|
|
2024-01-15 12:09:20 +01:00
|
|
|
check::
|
2024-02-24 08:32:50 +01:00
|
|
|
sh ${PYTHON_EXE_MSYS} -c "import ${MOD}"
|
2024-01-15 12:09:20 +01:00
|
|
|
|
|
|
|
lint::
|
|
|
|
sh .pylint.sh
|
|
|
|
|
|
|
|
install::
|
2024-02-05 15:30:11 +01:00
|
|
|
${PIP_EXE_MSYS} --python ${PYTHON_EXE_MSYS} install \
|
2024-02-11 00:47:40 +01:00
|
|
|
--no-deps \
|
2024-02-05 15:30:11 +01:00
|
|
|
--target ${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/ \
|
|
|
|
--upgrade .
|
2024-02-24 08:32:50 +01:00
|
|
|
sed -i -e "1s@/usr/bin/python${PYTHON_MINOR}@${PYTHON_EXE_MSYS}@" \
|
|
|
|
${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/bin/*
|
2024-01-15 12:09:20 +01:00
|
|
|
|
|
|
|
rsync::
|
|
|
|
bash .rsync.sh
|
|
|
|
|
2024-02-05 09:14:23 +01:00
|
|
|
test::
|
|
|
|
env PYTHONPATH=${PWD}/src ${PYTHON_EXE_MSYS} ${PWD}/src/${MOD}/exclude_badExits.py --help
|
|
|
|
env PYTHONPATH=${PWD}/src TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/torcontactinfo.py
|
2024-01-17 15:12:46 +01:00
|
|
|
|
2024-01-15 12:09:20 +01:00
|
|
|
doctest::
|
2024-02-05 09:14:23 +01:00
|
|
|
env PYTHONPATH=${PWD}/src ${DOCTEST} ${MOD}.txt
|
2024-01-15 12:09:20 +01:00
|
|
|
|
2024-01-16 15:54:24 +01:00
|
|
|
veryclean:: clean
|
2024-02-05 09:14:23 +01:00
|
|
|
rm -rf build dist src/exclude_badExits.egg-info/
|
2024-01-16 15:54:24 +01:00
|
|
|
|
2024-01-15 12:09:20 +01:00
|
|
|
clean::
|
|
|
|
find * -name \*~ -delete
|