Skip to content

New sysconfig API: Install paths #103481

@FFY00

Description

@FFY00

Feature or enhancement

We should replace sysconfig.get_paths() with something that can accurately describe the current reality.

Pitch

The new API should:

  • Support optional paths (eg. not all schemes can provide a scripts directory)
  • Introduce the concept of writable and read-only paths (this should be the default for stdlib for eg.)
  • Introduce the concept of active location schemes (eg. posix_user should not be available on virtual environments)

API design

Previous discussion

https://discuss.python.org/t/building-extensions-modules-in-a-post-distutils-world/23938
https://discuss.python.org/t/pep-582-python-local-packages-directory/963/391
https://discuss.python.org/t/linux-distro-patches-to-sysconfig-are-changing-pip-install-prefix-outside-virtual-environments/18240/28
https://discuss.python.org/t/deprecating-the-headers-wheel-data-key/23712

New sysconfig API meta-issue: GH-103480

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy