Be explicit about python3 executable
Per best practices, explicitly use the python3 executable rather than assuming the platform with have a "python" executable that maps to python3. https://www.python.org/dev/peps/pep-0394/ Change-Id: I39b8a1013a891f4570f374d8faa3cfa2ecaf3347 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
63b2a5b0a0
commit
44d6736a5e
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
|
@ -44,9 +44,9 @@ def get_sdist_name(workdir, repo):
|
||||
cwd=dest,
|
||||
)
|
||||
if use_tox:
|
||||
python = '.tox/venv/bin/python'
|
||||
python = '.tox/venv/bin/python3'
|
||||
else:
|
||||
python = 'python'
|
||||
python = 'python3'
|
||||
# Run it once and discard the result to ensure any setup_requires
|
||||
# dependencies are installed.
|
||||
cmd = [python, 'setup.py', '--name']
|
||||
@ -77,9 +77,9 @@ def build_sdist(workdir, repo):
|
||||
cwd=dest,
|
||||
)
|
||||
if use_tox:
|
||||
python = '.tox/venv/bin/python'
|
||||
python = '.tox/venv/bin/python3'
|
||||
else:
|
||||
python = 'python'
|
||||
python = 'python3'
|
||||
# Run it once and discard the result to ensure any setup_requires
|
||||
# dependencies are installed.
|
||||
cmd = [python, 'setup.py', 'sdist', 'bdist_wheel']
|
||||
|
@ -88,7 +88,7 @@ def get_min_specifier(specifier_set):
|
||||
def get_requirements_at_ref(workdir, repo, ref):
|
||||
"Check out the repo at the ref and load the list of requirements."
|
||||
dest = gitutils.clone_repo(workdir, repo, ref=ref)
|
||||
processutils.check_call(['python', 'setup.py', 'sdist'], cwd=dest)
|
||||
processutils.check_call(['python3', 'setup.py', 'sdist'], cwd=dest)
|
||||
sdist_name = pythonutils.get_sdist_name(workdir, repo)
|
||||
requirements_filename = os.path.join(
|
||||
dest, sdist_name + '.egg-info', 'requires.txt',
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Tool to generate a patch to remove direct tagging / branch-creating
|
||||
# rights for official OpenStack deliverables
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Handle pre-release / post-release ACLs for milestone-driven projects
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# All Rights Reserved.
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# List deliverables that appear in governance but not in releases
|
||||
# in preparation for MemberShipFreeze
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# All Rights Reserved.
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Scan the releases for a series that came after the project's branch
|
||||
# and verify that they are all on the right branch.
|
||||
|
Loading…
Reference in New Issue
Block a user