Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'python3' instead of 'python' in scripts #25499

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Aug 3, 2022

These scripts are run in the host, not a container, so they should reference python3 explicitly to make sure they get a useful Python version. According to PEP 394, python could refer to Python 2 in a global environment, so python3 should be preferred for scripts.

These scripts are run in the *host*, not a container, so they should
reference 'python3' explicitly to make sure they get a useful Python
version. According to PEP 394, 'python' could refer to Python 2 in a
global environment, so 'python3' should be preferred for scripts.
@potiuk
Copy link
Member

potiuk commented Aug 3, 2022

Ah right. They are not run in python env but in node env that's why they are not in python3 venv

@potiuk potiuk merged commit 87a0bd9 into apache:main Aug 3, 2022
potiuk pushed a commit that referenced this pull request Aug 4, 2022
These scripts are run in the *host*, not a container, so they should
reference 'python3' explicitly to make sure they get a useful Python
version. According to PEP 394, 'python' could refer to Python 2 in a
global environment, so 'python3' should be preferred for scripts.

(cherry picked from commit 87a0bd9)
@potiuk potiuk added this to the Airflow 2.3.4 milestone Aug 5, 2022
@ephraimbuddy ephraimbuddy added type:misc/internal Changelog: Misc changes that should appear in change log changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:misc/internal Changelog: Misc changes that should appear in change log labels Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants