Skip to content

"Homebrew and Python" mentions a bug in distutils without linking to a bug report #4165

@nchammas

Description

@nchammas

Over here the docs say:

The normal pip install --user is disabled for brewed Python. This is because of a bug in distutils, because Homebrew writes a distutils.cfg which sets the package prefix.

It would be helpful if the text "a bug in distutils" linked to a bug report against distutils describing the problem in detail. That would help users understand the nature of the problem and advocate for an upstream fix.

I raise this issue here because some Python projects don't work well with Homebrewed Python, typically hitting up against the following error:

distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both

Trying to get to the bottom of the issue leads to the "Homebrew and Python" documentation page, but the trail goes cold at the above mention of that bug in distutils.

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedPR was locked due to age

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions