Explicitly using python2 to prevent errors on py3-default systems

This commit is contained in:
Jacob Henner 2017-03-11 11:52:17 -05:00 committed by John Maguire
parent 6c9bc43bbb
commit e7ec942256
8 changed files with 21 additions and 19 deletions

View File

@ -1,4 +1,4 @@
add_custom_target(format-diff add_custom_target(format-diff
COMMAND python ${CMAKE_SOURCE_DIR}/dist/format.py) COMMAND python2 ${CMAKE_SOURCE_DIR}/dist/format.py)
add_custom_target(format add_custom_target(format
COMMAND python ${CMAKE_SOURCE_DIR}/dist/format.py -i) COMMAND python2 ${CMAKE_SOURCE_DIR}/dist/format.py -i)

2
dist/codesign.py vendored
View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python2
# Emulates the behaviour of codesign --deep which is missing on OS X < 10.9 # Emulates the behaviour of codesign --deep which is missing on OS X < 10.9
import os import os

2
dist/copyright.py vendored
View File

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

2
dist/cpplint.py vendored
View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python2
# #
# Copyright (c) 2009 Google Inc. All rights reserved. # Copyright (c) 2009 Google Inc. All rights reserved.
# #

2
dist/format.py vendored
View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
import argparse import argparse
import difflib import difflib
import os import os

2
dist/macdeploy.py vendored
View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python2
# This file is part of Clementine. # This file is part of Clementine.
# #

View File

@ -1,3 +1,4 @@
#!/usr/bin/python2
import codecs import codecs
import glob import glob
import logging import logging

View File

@ -1,3 +1,4 @@
#!/usr/bin/python2
import rpm import rpm
import subprocess import subprocess