Skip to content

pip 23.0.1 install works, but can't install anything with build requirements #357

Description

@gaige

Due to changes in the src/pip/_internal/build_env.py handling, the installed patches from patches/patch-src_pip___internal_build__env.py now cause a runtime error due to get_paths() no longer being imported in the installed version of that file.

Either the patch needs to be removed (unclear if this will do what we want based on cursory testing and looking at the rationale behind the removement in the source), or the patch needs to be modified to add

from sysconfig import get_paths

back in. This is related to changes in pypa/pip@da47881 which moved to using src/pip/_internal/locations/_sysconfig.py to find paths. Removing the _distutils_system_mod.py from my local system, uninstalling the pkgsrc pip and installing pip directly using ensurepip seems to work correctly even with multiple versions of python on my system (3.9 and 3.10 tests).

If this others can confirm this new code works for smartos as well, it looks like we could just remove the patch entirely.

Activity

  1. jperkin commented on Mar 5, 2023

    @jperkin
    Collaborator

    @0-wiz-0 any input?

  2. 0-wiz-0 commented on Mar 6, 2023

    @0-wiz-0

    I've fixed this in upstream pkgsrc by adding theimport. Thanks, @gaige !

  3. added a commit that references this issue on Mar 12, 2023
  4. self-assigned this
    on Mar 20, 2023
  5. jperkin commented on Mar 20, 2023

    @jperkin
    Collaborator

    Fixed versions from @0-wiz-0 are now available in trunk, thanks!

  6. added a commit that references this issue on Oct 30, 2023
  7. added a commit that references this issue on Jan 25, 2024
  8. added a commit that references this issue on Feb 7, 2024
  9. added a commit that references this issue on Feb 23, 2024
  10. added a commit that references this issue on May 3, 2024
  11. added a commit that references this issue on May 17, 2024
  12. added a commit that references this issue on Jul 31, 2024
  13. added a commit that references this issue on Aug 24, 2024
  14. 23 remaining items

  15. added a commit that references this issue on Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions