8000 [Request] Handle Python user base scripts directory · Issue #772 · ScoopInstaller/Main · GitHub
[go: up one dir, main page]

Skip to content
[Request] Handle Python user base scripts directory #772
@bryanburke

Description

@bryanburke

The Scoop manifest for Python (python.json) does not handle the Python user base scripts directory, so CLI scripts from packages installed in user mode (pip install --user) are not available on the PATH. Performing user installations of packages is considered best practice, and many packages (such as the popular Pipenv) recommend doing them.

Two possible solutions might be:

  1. Construct the user base scripts directory and add it to PATH. The path can be constructed as follows: Join-Path -Path (Split-Path -Path (python -m site --user-site) -Parent) -ChildPath Scripts
  2. Point the PYTHONUSERBASE environment variable to a directory within the Python install directory and persist it.

Related issue: ScoopInstaller/Versions#196

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0