uv
c9ffe976 - Centralize virtualenv path construction (#2102)

Comment changes are shownComment changes are hidden
Commit
1 year ago
Centralize virtualenv path construction (#2102) ## Summary Right now, we have virtualenv construction encoded in a few different places. Namely, it happens in both `gourgeist` and `virtualenv_layout.rs` -- _and_ `interpreter.rs` also encodes some knowledge about how they work, by way of reconstructing the `SysconfigPaths`. Instead, `gourgeist` now returns the complete layout, enumerating all the directories it created. So, rather than returning a root directory, and re-creating all those paths in `uv-interpreter`, we pass the data directly back to it.
Author
Parents
  • crates
    • gourgeist/src
      • File
        bare.rs
      • File
        lib.rs
    • uv-interpreter/src
      • File
        interpreter.rs
      • File
        lib.rs
      • File
        python_environment.rs
      • File
        sysconfig.rs
      • File
        virtualenv.rs
      • File
        virtualenv_layout.rs