devguide icon indicating copy to clipboard operation
devguide copied to clipboard

Missing Windows step for installing coverage

Open abrezovsky opened this issue 7 years ago • 4 comments

In /coverage/ section 5.2.1.1 When installing coverage on Windows, the second command step can not be used:

source ../cpython-venv/bin/activate

Instead, there should probably be some mention of the proper step:

..\cpython-venv\Scripts\activate.bat

Which allows you to enter the virtual environment and continue with the instructions.

abrezovsky avatar Mar 07 '18 02:03 abrezovsky

As a side-note, it might be worth mentioning that activate.ps1 needs to be used if trying to go through PowerShell.

abrezovsky avatar Mar 07 '18 03:03 abrezovsky

That command also doesn't necessary work on UNIX either depending on your shell. A comment saying to change that line accordingly based on your shell should be sufficient rather than listing every possible invocation.

brettcannon avatar Mar 07 '18 17:03 brettcannon

In that same section there is a link to venv's documentation, where it says: For more info on venv see Virtual Envrionment documentation. The venv documentation has more details for Windows, csh or fish shell users.

Mariatta avatar Mar 07 '18 17:03 Mariatta

Next action: Revise https://github.com/python/devguide/blob/master/coverage.rst#install-coverage to add these suggestions:

  • [ ] More info on venv as suggested by @Mariatta
  • [ ] Comment on command may need slight modifications based on shell and os per @brettcannon
  • [ ] Add Windows command for illustration of a modification for os per @abrezovsky

willingc avatar Mar 19 '18 14:03 willingc