Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
brandjon opened this issue Nov 12, 2019 · 2 comments
Closed

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

brandjon opened this issue Nov 12, 2019 · 2 comments
Labels
Can Close? Will close in 30 days if there is no new activity P3 type: feature request

Comments

@brandjon
Copy link
Member

brandjon commented Nov 12, 2019

(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.

@github-actions
Copy link

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!

@github-actions github-actions bot added the Can Close? Will close in 30 days if there is no new activity label Apr 14, 2021
@github-actions
Copy link

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
Labels
Can Close? Will close in 30 days if there is no new activity P3 type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant