python / python/cpython

Adopt a consistent POSIX layout

Open
#142,265 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

topic-installation type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Feature or enhancement

Proposal:

Currently, the Python installation directory for stdlib/platstdlib and purelib/platlib is defined as {implementation_lower}{py_version_short}{abi_thread}, and for include/platinclude as {implementation_lower}{py_version_short}{abiflags}.

I would like to make it consistent with {implementation_lower}{py_version_short}{abiflags}.

Currently, I believe this will mostly affect debug builds, which will receive their own separate directory.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

In https://github.com/python/cpython/issues/121103, we added {abi_thread}.
In https://github.com/python/cpython/issues/127294, we discuss some of the impact of mixed installations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the discussion in issues 121103 and 127294, then trace how the installation paths for stdlib, platstdlib, purelib, platlib, include, and platinclude are defined. Check the effects on debug and mixed installations; done means the affected paths consistently use {implementation_lower}{py_version_short}{abiflags} without breaking those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.