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

audit: do not allow to use the python@2 formula #6894

Closed
wants to merge 1 commit into from

Conversation

iMichka
Copy link
Member

@iMichka iMichka commented Jan 6, 2020

python@2 is EOL, recommend to use system Python 2.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew tests with your changes locally?

python@2 is EOL, recommend to use system Python 2.
@iMichka iMichka self-assigned this Jan 6, 2020
@@ -386,7 +386,7 @@ def audit_deps
if @new_formula &&
dep_f.keg_only_reason&.reason == :provided_by_macos &&
dep_f.keg_only_reason.valid? &&
!%w[apr apr-util openblas openssl openssl@1.1].include?(dep.name)
!%w[apr apr-util openblas openssl openssl@1.1 python@2].include?(dep.name)
Copy link
Member

Choose a reason for hiding this comment

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

This is a whitelist, not a blacklist.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, this section is about whitelisting keg-only dependencies, and I don't think python@2 is keg-only

perhaps it would be better to copy what is done to blacklist depending on git?

Copy link
Member

Choose a reason for hiding this comment

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

Might be also worth porting that to reference uses_from_macos and providing an opt-out for relevant formulae depending on Git

@stale
Copy link

stale bot commented Jan 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label Jan 30, 2020
@fredvd
Copy link

fredvd commented Feb 4, 2020

We are still waiting for a final python 2.7.18 release in march/april 2020. It has already been moved to python@2 and is not the default Python up in brew searches. The system Python 2 is not up to date.

Why the rush to remove Python 2? It is still in use by a lot of people to support or port Applications in the coming to puthon 3. From the brew homepage:

""" Homebrew installs the stuff you need that Apple (or your Linux system) didn’t."""

Shouldn't that be leading instead of removing support for a still functioning language version. People still need this version, being it declared EOL or not. I find it a little bit paternalizing to add obstacles for installing Python 2 because some people think they know what is best for other people to 'need' on their systems.

@stale stale bot removed the stale No recent activity label Feb 4, 2020
@MikeMcQuaid
Copy link
Member

People still need this version, being it declared EOL or not.

We are not interested in packaging and supporting EOL software.

some people think they know what is best for other people to 'need' on their systems.

This is literally the definition of "maintaining a package manager". Use brew extract if you still need python@2.

@iMichka
Copy link
Member Author

iMichka commented Feb 4, 2020

FYI we won't ship 2.7.18. But this is not the place to discuss this (https://discourse.brew.sh is there for that).

And I need to come back to this PR.

@iMichka
Copy link
Member Author

iMichka commented Feb 4, 2020

As the formula will be removed on Monday 10 February (Homebrew/homebrew-core#49796), this PR is not needed anymore.

@iMichka iMichka closed this Feb 4, 2020
@iMichka iMichka deleted the audit branch February 4, 2020 21:37
@lock lock bot added the outdated PR was locked due to age label Mar 10, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants