"libpcre2-dev",
"libdvbcsa-dev",
"python3",
+ "python3-pip",
"debhelper",
"ccache"
],
"buildcmd": [
+ "pip3 install requests",
"AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\\ --enable-ffmpeg_static\\ --enable-hdhomerun_static ./Autobuild.sh -t ${TARGET} -j ${PARALLEL} -w ${WORKDIR}",
"support/bintray.py publish filelist.txt",
]
"libpcre2-dev",
"libdvbcsa-dev",
"python3",
+ "python3-pip",
"debhelper",
"ccache"
],
"buildcmd": [
+ "pip3 install requests",
"AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\\ --enable-ffmpeg_static\\ --enable-hdhomerun_static ./Autobuild.sh -t ${TARGET} -j ${PARALLEL} -w ${WORKDIR}",
"support/bintray.py publish filelist.txt",
]
N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz"
echo "DOWNLOAD ${N} / ${PCLOUD_HASHDIR}"
- if [[ "$(python3 -V)" =~ "Python 3" ]]; then
- python3 ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp"
- else
+ if [[ "$(python -V)" =~ "Python 2" ]]; then
${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp"
+ else
+ python3 ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp"
fi
R=$?
# Upload
N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz"
echo "UPLOAD ${N}"
- if [[ "$(python3 -V)" =~ "Python 3" ]]; then
- python3 ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1
- else
+ if [[ "$(python -V)" =~ "Python 2" ]]; then
${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1
+ else
+ python3 ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1
fi
# Done