diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2018-04-29 11:40:58 +0800 |
---|---|---|
committer | Paul Wise <pabs3@bonedaddy.net> | 2018-04-29 11:40:58 +0800 |
commit | 5bdd01c3b3b1c415c71b00b2374538995f63597c (patch) | |
tree | bc3d4920f3fe032736b2fe90855e8d7280801da3 | |
parent | 733f3f864819ff04dd210bfde785d28e00e325fa (diff) | |
download | iotop-5bdd01c3b3b1c415c71b00b2374538995f63597c.tar.gz |
Switch from python to python3
Python 2 will be EOL in 2020 so Python 3 is preferrable.
See-also: https://pythonclock.org/
-rwxr-xr-x | .install-rpm.sh | 2 | ||||
-rwxr-xr-x | iotop.py | 2 | ||||
-rwxr-xr-x | release.sh | 2 | ||||
-rwxr-xr-x | sbin/iotop | 2 | ||||
-rwxr-xr-x | setup.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/.install-rpm.sh b/.install-rpm.sh index fc36db4..1ad62f8 100755 --- a/.install-rpm.sh +++ b/.install-rpm.sh @@ -2,7 +2,7 @@ # https://bugs.python.org/issue644744 -python setup.py install -O1 --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES +python3 setup.py install -O1 --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES # 'brp-compress' gzips the man pages without distutils knowing... fix this sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES # actually, it doesn't on all distributions so just compress unconditionally @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # iotop: Display I/O usage of processes in a top like UI # Copyright (c) 2007, 2008 Guillaume Chazarain <guichaz@gmail.com> # GPL version 2 or later @@ -6,7 +6,7 @@ set -e # Exit on error PACKAGE=$(basename "$PWD") mkdir dist TEMPDIR="$(mktemp -d)" -VERSION=$(python -c "from $PACKAGE.version import VERSION; print VERSION") +VERSION=$(python3 -c "from $PACKAGE.version import VERSION; print VERSION") echo "$PACKAGE-$VERSION: $TEMPDIR" mkdir "$TEMPDIR/$PACKAGE-$VERSION" git archive HEAD | (cd "$TEMPDIR/$PACKAGE-$VERSION" && tar vx) @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # iotop: Display I/O usage of processes in a top like UI # Copyright (c) 2007, 2008 Guillaume Chazarain <guichaz@gmail.com>, GPLv2 # See iotop --help for some help @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from distutils.core import setup from distutils.command import install as distutils_install |