Skip to content

Remove wording incorrectly suggesting python2 was supported by pip_install#495

Merged
hrfuller merged 3 commits intomasterfrom
jonathon--remove-misleading-words-about-python2-23june2021
Jun 25, 2021
Merged

Remove wording incorrectly suggesting python2 was supported by pip_install#495
hrfuller merged 3 commits intomasterfrom
jonathon--remove-misleading-words-about-python2-23june2021

Conversation

@thundergolfer
Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

  • Does not include precompiled binaries, eg. .par files. See CONTRIBUTING.md for info
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

@thundergolfer thundergolfer requested a review from andyscott as a code owner June 23, 2021 06:37
@google-cla google-cla bot added the cla: yes label Jun 23, 2021
@thundergolfer thundergolfer requested a review from hrfuller June 23, 2021 06:37
default, `pip_install` uses the system command `"python3"`. This can be overridden by passing the
`python_interpreter` attribute or `python_interpreter_target` attribute to `pip_install`.

You can have multiple `pip_install`s in the same workspace, e.g. for Python 2
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was never true and shouldn't have been in docs. Python 2 couldn't be used with pip_install, it only ever supported Python 3.5+ I think.

load("@rules_python//python/legacy_pip_import:pip.bzl", "pip_import", "pip_repositories")

# Create a central repo that knows about the dependencies needed for requirements.txt.
pip_import( # or pip3_import
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not even encourage Python 3 usage with pip_import, because I don't want to field maintenance questions about it.

@thundergolfer thundergolfer removed the request for review from andyscott June 24, 2021 00:38
@hrfuller hrfuller merged commit 46b8d99 into master Jun 25, 2021
@thundergolfer thundergolfer deleted the jonathon--remove-misleading-words-about-python2-23june2021 branch June 25, 2021 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants