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

Skip to content

--install-types does not work with --python-executable #11405

Description

@weddige

install_types always calls sys.executable and is therefore not compatible with a custom executable:

mypy/mypy/main.py

Line 1162 in 1bf701f

cmd = [sys.executable, '-m', 'pip', 'install'] + packages

The solution would be to pass options.python_executable from main.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions