← 输入框|github.com|刷新
Skip to content

Missing Windows step for installing coverage #336

Open

Description

@abrezovsky

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.

Activity

  1. changed the title [-]Missing alternate Windows step for installing coverage[/-] [+]Missing Windows step for installing coverage[/+] on Mar 7, 2018
  2. abrezovsky commented on Mar 7, 2018

    @abrezovsky
    Author

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

  3. brettcannon commented on Mar 7, 2018

    @brettcannon
    Member

    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.

  4. Mariatta commented on Mar 7, 2018

    @Mariatta
    Member

    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.

  5. willingc commented on Mar 19, 2018

    @willingc
    Collaborator

    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
  6. added
    type-featureAdditions; New content or section needed
    and removed
    type-featureAdditions; New content or section needed
    on Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions