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

[TinyTodo] Update the instruction to use Python virtual environment #140

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

shaobo-he-aws
Copy link
Contributor

Issue #, if available:
#139

Description of changes:

Signed-off-by: Shaobo He <shaobohe@amazon.com>
Comment on lines 20 to 21
python3 -m venv /tmp/tinytodo
source /tmp/tinytodo/bin/activate
Copy link
Contributor

Choose a reason for hiding this comment

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

is it a good idea / best practice to put the virtual environment in tmp? I think I've previously just put the virtual environment in the current directory, but not sure if that's good or not

Copy link
Contributor

@john-h-kastner-aws john-h-kastner-aws Jun 3, 2024

Choose a reason for hiding this comment

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

From my limited python experience I would also expect the virtual env to be in the project directory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think python3 -m venv . is not a good idea because it creates directories like bin and lib, which kinda mess up the project directory structure. How about making a new directory like venv?

Copy link
Contributor

Choose a reason for hiding this comment

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

That seems reasonable. In fact, now that you say that, I feel like I've typed python3 -m venv venv before

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, that's what I assumed craig meant initially

Signed-off-by: Shaobo He <shaobohe@amazon.com>
@shaobo-he-aws shaobo-he-aws merged commit ea0026d into main Jun 3, 2024
7 checks passed
@shaobo-he-aws shaobo-he-aws deleted the chore/shaobo/venv branch June 3, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants