pip 21.3, released on October 11, 2021, makes building local Python projects in place the default. Instead of first copying the project directory to a temporary location, pip uses the local source tree. Teams installing their own software from a checkout may therefore find build files left there afterward. Which files appear depends on the project’s build backend—the software responsible for building the package. This retrospective uses the pip 21.3 release-tag changelog and install documentation, retrieved in 2026 and matched to the release commit; the install documentation has no separately established publication date. [S1][S4]
The old opt-in switch is no longer needed. pip 21.3 ignores --use-feature=in-tree-build because that behavior is already the default. Teams needing the former copying behavior can instead request --use-deprecated=out-of-tree-build. This is a temporary compatibility option, not a promise to preserve two build modes indefinitely. The 21.3 documentation says removal of the legacy behavior is planned for pip 22.1; that is a plan stated in this release, not an already completed change. [S1][S4]
For setuptools-based projects, pip’s local-install documentation names .egg-info and build directories as examples of secondary artifacts generated inside the project directory. It does not say every backend leaves the same files. A useful upgrade check is to install from a disposable checkout and compare its contents before and after the build. That would let build owners decide which generated files their cleanup step must handle, rather than assume pip has kept the work in a separate temporary copy. This is operational advice based on the documented behavior, not a reported test result. [S4]
The pip documentation attributes the change to performance and correctness problems caused by copying the entire project. It supplies no benchmark alongside that explanation, so the change does not establish a particular build-time saving. Teams using the temporary fallback still have a source-directory cleanup decision to test before the planned retirement of the copying behavior. [S1][S4]
Source documents
- pip 21.3 release changeloghttps://raw.githubusercontent.com/pypa/pip/21.3/NEWS.rst
- pip 21.3 install documentation: local project installshttps://raw.githubusercontent.com/pypa/pip/21.3/docs/html/cli/pip_install.rst
