Skip to content
Open
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
6 changes: 4 additions & 2 deletions pkgs/modules/python-base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ let

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

pip = pypkgs.callPackage ../../pip { };

binary-wrapped-python = pkgs.callPackage ../../python-wrapped {
inherit pkgs buildGoModule python python-ld-library-path;
};
Expand All @@ -33,7 +35,7 @@ in

replit.packages = [
binary-wrapped-python
(pypkgs.callPackage ../../pip { })
pip
(pkgs.poetry.override { python3 = python; })
uv
];
Expand Down Expand Up @@ -62,7 +64,7 @@ in
replit.env = {
PYTHONUSERBASE = userbase;
PYTHONPATH = "${sitecustomize}";
REPLIT_PYTHONPATH = "${userbase}/${python.sitePackages}:${pypkgs.setuptools}/${python.sitePackages}";
REPLIT_PYTHONPATH = "${userbase}/${python.sitePackages}:${pypkgs.setuptools}/${python.sitePackages}:${pip}/${python.sitePackages}";
UV_PROJECT_ENVIRONMENT = "$REPL_HOME/.pythonlibs";
# Even though it is set-default in the wrapper, add it to the
# environment too, so that when someone wants to override it,
Expand Down
Loading