This commit is contained in:
emdee 2024-01-19 01:10:51 +00:00
parent f63af45d10
commit ac7251b722
6 changed files with 46 additions and 8 deletions

View File

@ -244,6 +244,8 @@ test_vm:: install_vm
--verbose ${VERBOSE} -t daily \
$(ROLES) > .$@-${LOCALHOST} 2>&1
# ${VERBOSE}
rsync::
bash .rsync.sh
veryclean:: clean
rm -f .run* .check*

View File

@ -6,7 +6,7 @@
prog=`basename $0 .bash`
PREFIX=/usr/local
ROLE=base
ROLE=toxcore
AnsI=AnsI
# quiet

View File

@ -49,7 +49,7 @@ if [ "$#" -eq 0 ] ; then
bash /usr/local/sbin/base_patch_from_diff.bash $ROLE \
$TODIR/roles/$ROLE/overlay/Linux/$PREFIX/patches/$ROLE/$PWD || exit 6$?
[ -d $PREFIX/$LIB/python$PYTHON_MINOR/site-packages/$DIR-py$PYTHON_MINOR.egg ] || \
[ -d $PREFIX/$LIB/python$PYTHON_MINOR/site-packages/$DIR.dist-info ] || \
pip3.sh install . >> install.log 2>&1\
|| { echo "ERROR: code $?" ; tail install.log ; exit 5 ; }

View File

@ -47,8 +47,8 @@ if [ "$#" -eq 0 ] ; then
#? [ -e /var/local/src/var_local_local.bash ] && . /var/local/src/var_local_local.bash
[ -d $PREFIX/$LIB/python${PYTHON_MINOR}/site-packages/${DIR}-${VER}-py${PYTHON_MINOR}.egg ] || \
msys_python_setup_install 2>&1 || { ERROR "code $?" ; cat install$PYVER.log ; exit 6 ; }
[ -d $PREFIX/$LIB/python${PYTHON_MINOR}/site-packages/${DIR}-${VER}.dist-info ] || \
msys_python_pip_install . 2>&1 || { ERROR "code $?" ; cat install$PYVER.log ; exit 6 ; }
# msys_python_bins $BINS

View File

@ -10,15 +10,19 @@ P="BASE_PYTHON${PYVER}_MINOR"
PYTHON_MINOR="$(eval echo \$$P)"
PYTHON_EXE_MSYS=$PREFIX/bin/python$PYVER.bash
PYTHON_EXE=$PYTHON_EXE_MSYS
LOCAL_DOCTEST=/usr/local/bin/testforge_run_doctest3.bash
DOCTEST=${LOCAL_DOCTEST}
. /usr/local/src/usr_local_src.bash || exit 2
PKG=stem_examples
DIR=$PKG
MOD=$DIR
GIT_HUB=git.macaw.me
GIT_USER=emdee
GIT_DIR=$DIR
#/var/local/bin/python3.bash setup.py install --prefix=/var/local
ols_funtoo_requires dev-libs/stem
# ols_funtoo_requires dev-libs/stem
# requires: py.test
#? ols_pip${PYVER}_requires readme_renderer
@ -27,11 +31,41 @@ cd $PREFIX/src || exit 2
WD=$PWD
if [ $# -eq 0 ] ; then
:
if [ ! -d "$DIR" ] ; then
if [ ! -d "$PREFIX/net/Git/$GIT_HUB/$GIT_USER/$GIT_DIR" ] ; then
msys_are_we_connected || exit 0
[ -d "$PREFIX/net/Git/$GIT_HUB/$GIT_USER" ] || \
mkdir "$PREFIX/net/Git/$GIT_HUB/$GIT_USER"
( cd "$PREFIX/net/Git/$GIT_HUB/$GIT_USER" && \
git clone "https://$GIT_HUB/$GIT_USER/$GIT_DIR" ) ||\
exit 2
fi
cp -rip "$PREFIX/net/Git/$GIT_HUB/$GIT_USER/$GIT_DIR" . || exit 3
fi
python$PYVER.sh -c 'import stem' || \
pip$PYVER.sh install stem
[ -d $PREFIX/$LIB/python${PYTHON_MINOR}/site-packages/${DIR}-${VER}.dist-info ] || \
msys_python_pip_install . > install$PYVER.log 2>&1 || {
ERROR "pip retval=$?" ;
cat install$PYVER.log ;
exit 6 ;
}
# msys_python_bins $BINS
elif [ "$1" = 'check' ] ; then # 1*
"$PYTHON_EXE_MSYS" -c "import $MOD" 2>/dev/null || exit 10
elif [ "$1" = 'lint' ] ; then # 2*
cd $PREFIX/src/$DIR || exit 20
bash .pylint.sh 2>&1 || exit 2$?
elif [ "$1" = 'test' ] ; then # 3*
cd $PREFIX/src/$DIR || exit 30
elif [ "$1" = 'doctest' ] ; then # 8*
${DOCTEST} $WD/$DIR/${DIR}.txt
fi

View File

@ -20,6 +20,8 @@ if [ "$#" -eq 0 ] ; then
bash c-toxcore.bash # || exit 13$?
bash tox_profile.bash # || 14$?
bash stem_examples.bash # || 14$?
bash exclude_badExits.bash
# sh mitogen.bash
# sh toxcore_docker.bash || exit 14$?
# which sdwdate >/dev/null 2>/dev/null || \