This commit is contained in:
Charlie Root 2021-04-17 04:26:44 -07:00
parent 6d8da42776
commit 076c974858
2 changed files with 4 additions and 4 deletions

View File

@ -1,14 +1,11 @@
ZPOOL="" ZPOOL=""
SERVER="" SERVER=""
PYTHON?=/usr/local/bin/python3.7 PYTHON?=/usr/local/bin/python3.7
# pkg install python37 git-lite
# pip19 required for iocage files install
depends: depends:
@(pkg -vv | grep -e "url.*/latest") > /dev/null 2>&1 || (echo "It is advised pkg url is using \"latest\" instead of \"quarterly\" in /etc/pkg/FreeBSD.conf.";) @(pkg -vv | grep -e "url.*/latest") > /dev/null 2>&1 || (echo "It is advised pkg url is using \"latest\" instead of \"quarterly\" in /etc/pkg/FreeBSD.conf.";)
@test -s ${PYTHON} || (echo "Python binary ${PYTHON} not found, iocage will install python37"; pkg install -q -y python37) @test -s ${PYTHON} || (echo "Python binary ${PYTHON} not found, iocage will install python37"; pkg install -q -y python37)
pkg install -q -y py37-cython py37-pip py37-libzfs py37-six pkg install -q -y py37-libzfs
${PYTHON} -m pip install pip==19.3.1
${PYTHON} -m ensurepip ${PYTHON} -m ensurepip
${PYTHON} -m pip install -Ur requirements.txt ${PYTHON} -m pip install -Ur requirements.txt

3
iocage/iocage-env.sh Normal file
View File

@ -0,0 +1,3 @@
pkg install python37 py37-cython py37-pip py37-libzfs py37-six
python3.7 -m pip install pip==19.3.1
# iocage install does not work with pip 20.x