Skip to content

update pip3 when pip config has set global.break-system-packages #631

@ErnestDong

Description

@ErnestDong

Erroneous Behavior

I tend to install base environment for general scripts, and venv for specific projects. Therefore I set pip to global.break-system-packages default. Therefore I can install some common packages like numpy and pandas globally conveniently. But topgrade skips pip3 since it only checks if EXTERNALLY-MANAGED exists (#367). But it's not the only way to allow pip to install packages globally.

my ~/.pip/pip.conf looks like

[global]
break-system-packages = true

you can use pip config get global.break-system-packages to get boolean true to check.

Expected Behavior

updates pip3 when pip config get global.break-system-packages is true

Steps to reproduce

add break-system-packages = true in pip.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions