comparison contrib/packaging/buildrpm @ 43358:518655314fc5 stable

packaging: use "python3" for fedora29 ... and as buildrpm default Change the buidrpm default. The CentOS targets explicitly use "python", and changing the default will only influence Fedora 29. A Python 3 package needs python3 dependencies, so pythonexe (and pythonver) is used for specifying dependencies. Other OS versions will keep using "python" as before ... or potentially change to explicit "python2". Fedora 29 packages can thus also still be built for Python 2 - just not in the docker image that is updated for Python 3.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 01 Nov 2019 12:59:22 +0100
parents 90dc0d3111d0
children de1f4c431619
comparison
equal deleted inserted replaced
43357:90dc0d3111d0 43358:518655314fc5
4 4
5 . $(dirname $0)/packagelib.sh 5 . $(dirname $0)/packagelib.sh
6 6
7 BUILD=1 7 BUILD=1
8 RPMBUILDDIR="$PWD/rpmbuild" 8 RPMBUILDDIR="$PWD/rpmbuild"
9 PYTHONEXE=python2 9 PYTHONEXE=python3
10 10
11 while [ "$1" ]; do 11 while [ "$1" ]; do
12 case "$1" in 12 case "$1" in
13 --prepare ) 13 --prepare )
14 shift 14 shift