Skip to content

buildenv: remove special treatment of python files - #147

Closed
chaoflow wants to merge 1 commit into
NixOS:masterfrom
chaoflow:no-special-python-file-treatment
Closed

chaoflow wants to merge 1 commit into
NixOS:masterfrom
chaoflow:no-special-python-file-treatment

Conversation

@chaoflow

Copy link
Copy Markdown
Member

buildPythonPackage does not leave easy_install.pth and site.py
anymore. A python package that leaves these files is broken. An
exception to this is setuptoolsSite which packages setuptools'
site.py. To include it into a buildenv, this patch is even needed, not
just cosmetic.

buildPythonPackage does not leave easy_install.pth and site.py
anymore. A python package that leaves these files is broken. An
exception to this is setuptoolsSite which packages setuptools'
site.py. To include it into a buildenv, this patch is even needed, not
just cosmetic.
@edolstra

Copy link
Copy Markdown
Member

Applied!

@edolstra edolstra closed this Jul 23, 2013
zolodev pushed a commit to zolodev/nix that referenced this pull request Jan 1, 2024
…ns/cla-assistant/github-action-2.1.3.pre.beta

chore(deps): bump cla-assistant/github-action from 2.1.2.pre.beta to 2.1.3.pre.beta
ConnorBaker pushed a commit to ConnorBaker/nix that referenced this pull request Jul 25, 2025
…8796ebd-ce7e-4551-a225-409806f242ea

Release v3.8.2
ConnorBaker added a commit to ConnorBaker/nix that referenced this pull request May 22, 2026
Two adversarial-review and two pattern-discovery passes (Opus 4.7, 1M ctx,
~5,300 lines under doc/inventory/review/) walked the existing 217-entry
catalog and found cross-shard patterns the per-shard catalogers couldn't
see. This commit folds the four reports into the catalog.

Catalog scope rewrite. The README's "Performance work without duplication
or complexity to fix" exclusion was wrong: hot-path container choices,
allocations in inner loops, cache-line alignment costs, and missed
concurrency are all in scope on their own merits. Same for modernisation:
shrinking the Boost dependency surface or migrating hand-rolled idioms
to stdlib equivalents is a real simplification, even when no underlying
duplication backs the change. The README "What this catalog targets"
section adds an explicit "Performance" bullet and rewrites the
modernisation bullet to be in scope; the anti-list now excludes only
cosmetic changes and feature additions.

Verdict-table corrections. NixOS#50 (resolved-by-design) and NixOS#148 (INVALID,
windowSize destruction-order hazard) had verdict-table rows that
contradicted their validation paragraphs; tables now match. NixOS#171
upgraded VALID per the scope rewrite. Section-17 header updated from
"Five VALID; nine PARTIALLY VALID" to "Six VALID; eight PARTIALLY
VALID" to track.

Reclassifications and corrections from the deeper passes:

- NixOS#140 reframed as dead code (zero callers anywhere; not a SIOF
  hazard as the original framing suggested).
- NixOS#149 mechanism corrected: the `created = 123;` debug field is a
  guard against gcc bug 80431 miscompilation, not a use-after-free
  sentinel as pass-1 had stated.
- NixOS#170 corrected to three Goal subclasses + Waker (not four Goal
  subclasses as the catalog body had said).
- NixOS#147 demoted to PARTIALLY VALID; the singleton-leak path is
  load-bearing for legacy callers and must be retained alongside
  any per-Store ownership migration.
- NixOS#122 expanded with two ABI hazards the prior reviewer missed:
  layout drift in `PrimOp::impl` (allocated by `nix_alloc_primop`
  C-API) and symbol-mangle break in `extern fun<...>
  stackOverflowHandler`.
- NixOS#138 expanded: two C-API readers of `settings.readOnlyMode`, not
  one as pass-1 had stated.
- NixOS#160 expanded with HALO-incompatibility hazard for any
  `boost::asio::awaitable<T>` migration that touches `final_awaiter`.
- NixOS#129 expanded with destructor-throw caveat for the
  `MaintainCount` -> `Finally` replacement.
- NixOS#143 expanded with TLS-fallback shutdown-ordering hazard.
- NixOS#56 reframed as a real ODR fix: different TUs previously saw
  different definitions of the explicit specialisation; the values
  coincidentally matched so behaviour was preserved but the program
  was technically ill-formed.

Count corrections (each verified independently via grep): NixOS#137 register
sites = 16 (15 production + 1 test), NixOS#166 forward-decl headers =
9/21/12 (Store +2 over the catalog body), NixOS#167 buffer-size literals =
10 in libutil / 19 tree-wide, NixOS#169 friend declarations = 16 (one
duplicate `ExprVar`), NixOS#172 `unreachable()` sites = 64-65, NixOS#173 pragma
sites = 10, NixOS#176 daemon cases = 37 (35 distinct bodies), NixOS#178
trust-check sites = 11+1, NixOS#146 env vars = 14 in src/.

Forty-four cross-shard candidates (N1-N44) folded into four new section
files (22-25). The N-numbered range is intentionally separate from
1-217 to keep cross-references stable. Pattern clusters A-G,
architectural debt themes A1-A7, C++23/Boost uplift series U1-U10
(with U7 split per pass-2's refinement), and ten redundant-abstraction
pairs R1-R10 are documented in new README subsections.

Eight follow-up agents (E1-E8) deferred for source-level investigation:
verify `impureOutputHash` deletion path, audit C-API `*Settings`
surface lockstep, write a Goal::Co property test pinning O(1) frame
depth, build a daemon-client error-message preservation matrix, set up
periodic branch verification, validate test-support consolidation,
audit forward-decl source-compat, and choose the
`vTrue`/`vFalse`/`vNull`/`vEmptyList` invariant.

The four review reports plus the consolidation log live under
doc/inventory/review/ and stay in-tree for traceability.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants