force using python2 to run script

Fixes #945
This commit is contained in:
Franz Chih-Ping Hsieh 2018-05-23 23:55:38 -04:00
parent 54b8c362a2
commit f356ac4f17
15 changed files with 15 additions and 15 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# Koji build daemon
# Copyright (c) 2005-2014 Red Hat, Inc.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# coding=utf-8
# command line interface for the Koji build system

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
from __future__ import absolute_import
from __future__ import print_function

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
from __future__ import absolute_import
from __future__ import print_function

View file

@ -277,7 +277,7 @@ make DESTDIR=$RPM_BUILD_ROOT PYTHON=python3 %{?install_opt} install
cd ../plugins
make DESTDIR=$RPM_BUILD_ROOT PYTHON=python3 %{?install_opt} install
# alter python interpreter in koji CLI
sed -i 's/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/python3/' $RPM_BUILD_ROOT/usr/bin/koji
sed -i 's/\#\!\/usr\/bin\/python2/\#\!\/usr\/bin\/python3/' $RPM_BUILD_ROOT/usr/bin/koji
%endif
%clean

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# Copyright (c) 2005-2014 Red Hat, Inc.
#
# Koji is free software; you can redistribute it and/or

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
from multiprocessing import Pool
import subprocess

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# coding=utf-8
"""Test the __init__.py module"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
"""Test the __init__.py module"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# koji-gc: a garbage collection tool for Koji
# Copyright (c) 2007-2014 Red Hat, Inc.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# koji-shadow: a tool to shadow builds between koji instances
# Copyright (c) 2007-2016 Red Hat, Inc.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# Koji Repository Administrator (kojira)
# Copyright (c) 2005-2014 Red Hat, Inc.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# Koji daemon that runs in a Windows VM and executes commands associated
# with a task.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
# Koji virtual machine management daemon
# Copyright (c) 2010-2014 Red Hat, Inc.