8000 Fixes python version flag & bad import in context manager by maciekrb · Pull Request #1368 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content

Fixes python version flag & bad import in context manager #1368

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

Merged
merged 3 commits into from
Feb 20, 2018

Conversation

maciekrb
Copy link
Contributor
@maciekrb maciekrb commented Feb 20, 2018

Adds the -p python3.5 flag to virtualenv creation step, as currently the flag is being added to an env var (a typo I believe) and the python binary ends up being python 2.7.

Fixes a bad import in status context manager.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 20, 2018
@maciekrb maciekrb changed the title Fixes Dockerfile to actually use python3.5 Fixes python version & bad import in context manager Feb 20, 2018
@maciekrb maciekrb changed the title Fixes python version & bad import in context manager Fixes python version flag & bad import in context manager Feb 20, 2018
@@ -5,11 +5,11 @@ FROM gcr.io/google_appengine/python

# Create a virtualenv for dependencies. This isolates these packages from
# system-level packages.
RUN virtualenv /env
RUN virtualenv -p python3.5 /env
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use python3.6 if you're gonna use python 3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python3.6 it is then.

@theacodes theacodes merged commit 424e1e0 into GoogleCloudPlatform:master Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0