@cryptotaxi247 / netdata-1 / commits / e51ea95e3

Switch to pulling in Python 3 by default instead of Python 2. (#8318)

Most distros have Python 3, and some are already looking at dropping Python 2 in upcomming releases. All of our code works correctly on Python 3, so just use it by default for platforms that have it.

James Mills committed Mar 6, 2020 at 08:32 UTC e51ea95e35957c5977202d53857d675dc64c7459
1 file changed +4 -1
packaging/installer/install-required-packages.sh
+4 -1
@@ -1833,8 +1833,11 @@ if [[ "${pv}" =~ ^Python\ 2.* ]]; then
1833 elif [[ "${pv}" =~ ^Python\ 3.* ]]; then
1834 pv=3
1835 PACKAGES_NETDATA_PYTHON3=1
1836 -else
1836 +elif [[ "${tree}" == "centos" ]] && [ "${version}" -lt 8 ]; then
1837 pv=2
1838 +else
1839 + pv=3
1840 + PACKAGES_NETDATA_PYTHON3=1
1841 fi
1842
1843 [ "${detection}" = "/etc/os-release" ] && cat << EOF