Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@
"commit": "2250a9afde519540b54c69522bc27f732654f294",
"path": "/nix/store/i0q9y4kjp4lz216n6qfkl9vs96arxjq2-replit-module-python-3.10"
},
"python-3.10:v51-20240301-fce6b38": {
"commit": "fce6b3862fb5fae63daf8229e611995f219a3e93",
"path": "/nix/store/cps6dpq7h5aqm0ipylraq7ym0bqn99ga-replit-module-python-3.10"
},
"qbasic:v1-20230525-c48c43c": {
"commit": "c48c43c6c698223ed3ce2abc5a2d708735a77d5b",
"path": "/nix/store/4n4raazspqy2zgawkkyaqc9xapl1f5sz-replit-module-qbasic"
Expand Down Expand Up @@ -1083,6 +1087,10 @@
"commit": "2250a9afde519540b54c69522bc27f732654f294",
"path": "/nix/store/qwq0j7j2ln63a3h0r033pm5llzw46aq0-replit-module-python-3.11"
},
"python-3.11:v32-20240301-fce6b38": {
"commit": "fce6b3862fb5fae63daf8229e611995f219a3e93",
"path": "/nix/store/m0hrcir1h35mg87s1jaj7hsib1375nqv-replit-module-python-3.11"
},
"python-3.8:v1-20230829-e1c0916": {
"commit": "e1c0916e9629e64e596aa4730df2da68363ddeeb",
"path": "/nix/store/rsycf8rjpznldnf51h83yl0mx3v3ddij-replit-module-python-3.8"
Expand Down Expand Up @@ -1207,6 +1215,10 @@
"commit": "2250a9afde519540b54c69522bc27f732654f294",
"path": "/nix/store/bk9v6p5an4gmnnqgymk3dw5rfi6m71ag-replit-module-python-3.8"
},
"python-3.8:v32-20240301-fce6b38": {
"commit": "fce6b3862fb5fae63daf8229e611995f219a3e93",
"path": "/nix/store/pi2sqghsk53gjnkpi76faci08abjq2ys-replit-module-python-3.8"
},
"bun-1.0:v1-20230911-f253fb1": {
"commit": "f253fb1a97d9a1c950d90081ee1ccb290776cf8b",
"path": "/nix/store/qf9aiylryg8lq5q4z7fcj11824k9rf17-replit-module-bun-1.0"
Expand Down Expand Up @@ -1431,6 +1443,10 @@
"commit": "2250a9afde519540b54c69522bc27f732654f294",
"path": "/nix/store/ja2dy1y3jzr71dx86011dvmdyp3vvf4n-replit-module-python-with-prybar-3.10"
},
"python-with-prybar-3.10:v31-20240301-fce6b38": {
"commit": "fce6b3862fb5fae63daf8229e611995f219a3e93",
"path": "/nix/store/hxqwbpnlajmix3mz45fn9z9bjyjmiczv-replit-module-python-with-prybar-3.10"
},
"nodejs-with-prybar-18:v1-20230928-1ea5ac0": {
"commit": "1ea5ac0313085b2ac631b493c925d33489d58410",
"path": "/nix/store/8v3laig35f30bvgw8mwjcsznk06l7vf3-replit-module-nodejs-with-prybar-18"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/modules/python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ let
yapf = pypkgs.yapf;
};

sitecustomize = pkgs.callPackage ./sitecustomize.nix { };
sitecustomize = pkgs.callPackage ./sitecustomize { };

in
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{ pkgs, ... }:
# Use this sitecustomize.py (a directory containing it in PYTHONPATH) to
# overwrite pip's shebang line treatment so it doesn't use hard-coded paths
# to the python executable, so we could update Python without editing Repls
# Using this approach also allows this scheme to work with a version of pip
# which the user has installed into their .pythonlibs, which can happen if they
# upgrade pip.
pkgs.writeTextFile {
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "sitecustomize";
text = ./sitecustomize.py;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, We could use builtins.readFile instead.

destination = "/sitecustomize.py";
}
src = ./.;
installPhase = ''
mkdir $out
mv ./sitecustomize.py $out
'';
}