6 Commits
3.7.3 ... 3.8.5

Author SHA1 Message Date
43bb5ca14c Dateien hochladen nach „“ 2020-08-03 21:18:05 +02:00
3358b1a780 „compile.sh“ hinzufügen 2020-08-03 21:12:35 +02:00
9c023cc634 „README.md“ ändern 2020-08-03 21:11:59 +02:00
15db3f172f „README.md“ ändern 2020-08-02 14:27:45 +02:00
e2492933cc „compile.sh“ löschen 2020-08-02 14:26:41 +02:00
488bf0ab77 „python-3.8.4rc1-x86_64-1.tgz“ löschen 2020-08-02 14:26:37 +02:00
3 changed files with 24 additions and 20 deletions

View File

@@ -1,3 +1,3 @@
# python3.8.4rc1
# For Unraid v6.9.x
Precompile Python 3.8.4rc1 for Unraid-Kernel-Helper
Precompile Python 3.8.5 for Unraid-Kernel-Helper for iSCSI builds

View File

@@ -1,32 +1,36 @@
CPU_COUNT="$(grep -c ^processor /proc/cpuinfo)"
PYTHON_V="3.8.5"
echo "---Setting compile cores to $CPU_COUNT---"
apt-get update
apt-get install --no-install-recommends zlib1g-dev libbz2-dev liblzma-dev libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev libgdbm-dev liblzma-dev tk8.6-dev lzma lzma-dev libgdbm-dev python3-pip libcairo2-dev python3-dev libgirepository1.0-dev python3-cairo-dev libgdbm-compat-dev
apt-get -y install --no-install-recommends zlib1g-dev libbz2-dev liblzma-dev libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev libgdbm-dev liblzma-dev tk8.6-dev lzma lzma-dev libgdbm-dev python3-pip libcairo2-dev python3-dev libgirepository1.0-dev python3-cairo-dev libgdbm-compat-dev python3-wheel
cd ${DATA_DIR}
wget -q -nc --show-progress --progress=bar:force:noscroll -O ${DATA_DIR}/python3.8.4rc1.tgz https://www.python.org/ftp/python/3.8.4/Python-3.8.4rc1.tgz
wget -q -nc --show-progress --progress=bar:force:noscroll -O ${DATA_DIR}/python$PYTHON_V.tgz https://www.python.org/ftp/python/${PYTHON_V%r*}/Python-$PYTHON_V.tgz
wget -q -nc --show-progress --progress=bar:force:noscroll -O ${DATA_DIR}/makepkg https://github.com/ich777/python-unraid/raw/3.7.3/makepkg
mv ${DATA_DIR}/makepkg /sbin/makepkg
chmod 770 /sbin/makepkg
mkdir ${DATA_DIR}/python3.8.4rc1
tar -C ${DATA_DIR}/python3.8.4rc1 --strip-components=1 -xf ${DATA_DIR}/python3.8.4rc1.tgz
cd ${DATA_DIR}/python3.8.4rc1
mkdir ${DATA_DIR}/python$PYTHON_V
tar -C ${DATA_DIR}/python$PYTHON_V --strip-components=1 -xf ${DATA_DIR}/python$PYTHON_V.tgz
cd ${DATA_DIR}/python$PYTHON_V
./configure --prefix=/usr
make -j${CPU_COUNT}
DESTDIR=${DATA_DIR}/Python3.8.4rc1 make install
DESTDIR=${DATA_DIR}/Python$PYTHON_V make install
pip3 install gobject PyGObject -t ${DATA_DIR}/Python3.8.4rc1/usr/lib/python3.8/site-packages/
pip3 install gobject PyGObject -t ${DATA_DIR}/Python$PYTHON_V/usr/lib/python*/site-packages/
mkdir ${DATA_DIR}/Python3.8.4rc1/install
tee ${DATA_DIR}/Python3.8.4rc1/install/slack-desc <<EOF
mkdir ${DATA_DIR}/Python$PYTHON_V/install
tee ${DATA_DIR}/Python$PYTHON_V/install/slack-desc <<EOF
|-----handy-ruler------------------------------------------------------|
python: python (v3.8.4rc1)
python: python (v$PYTHON_V)
python:
python: Custom Python 3.8.4rc1 package for Unraid-Kernel-Helper by ich777
python: Custom Python $PYTHON_V package for Unraid-Kernel-Helper by ich777
EOF
cd ${DATA_DIR}/Python3.8.4rc1
strip -s ${DATA_DIR}/Python3.8.4rc1/usr/lib/* ${DATA_DIR}/Python3.8.4rc1/usr/bin/*
makepkg ../python-3.8.4rc1-x86_64-1.tgz # twice NO!
cd ${DATA_DIR}/Python$PYTHON_V
strip -s ${DATA_DIR}/Python$PYTHON_V/usr/lib/* ${DATA_DIR}/Python$PYTHON_V/usr/bin/*
n n | makepkg ../python-$PYTHON_V-x86_64-1.tgz # twice NO!
rm -R ${DATA_DIR}/python3.8.4rc1
rm -R${DATA_DIR}/Python3.8.4rc1
rm ${DATA_DIR}/python3.8.4rc1.tgz
rm -R ${DATA_DIR}/python$PYTHON_V
rm -R ${DATA_DIR}/Python$PYTHON_V
rm /sbin/makepkg
rm ${DATA_DIR}/python$PYTHON_V.tgz