Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update venv and clean make targets #856

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 2 commits into from
May 7, 2022

Conversation

ezio-melotti
Copy link
Member

This PR:

  • Updates the venv target
  • Adds a clean-venv target
  • Updates the clean target to call clean-venv too

These are copied from cpython/Doc/Makefile with minor changes.

See #854.

@ezio-melotti ezio-melotti requested a review from hugovk May 6, 2022 06:39
@ezio-melotti ezio-melotti self-assigned this May 6, 2022
@ezio-melotti ezio-melotti mentioned this pull request May 6, 2022
5 tasks
-rm -rf $(BUILDDIR)/*

clean-venv:
Copy link
Member

Choose a reason for hiding this comment

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

Should we include clean-venv in the help?

Copy link
Member Author

Choose a reason for hiding this comment

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

It isn't included in CPython, and I think that's because:

  1. if you try to recreate the venv, it already tells you to use make clean-venv
  2. if you run make clean it also cleans the venv

Because of these reasons and for consistency with CPython, I decided to leave it out.

Copy link
Member

Choose a reason for hiding this comment

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

Yep, sounds good.

@hugovk
Copy link
Member

hugovk commented May 6, 2022

Good to have things working in a similar way here and for CPython docs 👍

@ezio-melotti ezio-melotti merged commit a8cc91e into python:main May 7, 2022
@ezio-melotti ezio-melotti deleted the update-makefile branch May 7, 2022 04:16
AA-Turner pushed a commit to AA-Turner/devguide that referenced this pull request Jun 17, 2022
* Update the `venv` command in the Makefile.

* Add the `clean-env` and updated the `clean` command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants