Skip to content

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-melottiezio-melotti requested a review from hugovkMay 6, 2022 06:39
@ezio-melottiezio-melotti self-assigned this May 6, 2022
@ezio-melottiezio-melotti mentioned this pull request May 6, 2022
5 tasks
clean: clean-venv
-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
MemberAuthor

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

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

@ezio-melottiezio-melotti merged commit a8cc91e into python:mainMay 7, 2022
@ezio-melottiezio-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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ezio-melotti@hugovk