Skip to content

Provide a way to autodetect the Python runtime in pip_import #258

Closed

Description

@brandjon

(Forked from discussion in #256.)

When no python_interpreter is specified for pip_import, it defaults to "python". This command is usually the system Python 2 interpreter, but on some platforms (Arch, I believe) it can be Python 3.

"python2" is more specific, but it doesn't exist on all platforms that have Python 2 (macOS in particular: see bazelbuild/bazel#9402).

It'd be nice to autodetect what platform we're on and choose the right Python 2 command for pip_import by default. Note that this is the WORKSPACE equivalent of an autodetecting Python toolchain, and may have some overlap with the aim of #257.

Activity

  1. github-actions commented on Apr 14, 2021

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
    Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

  2. added
    Can Close?
    on Apr 14, 2021
  3. github-actions commented on May 14, 2021

    @github-actions
    Contributor

    This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

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

    Can Close?P3type: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions