Skip to content

Commit

Permalink
don't overwrite pip
Browse files Browse the repository at this point in the history
Signed-off-by: technillogue <[email protected]>
  • Loading branch information
technillogue committed May 17, 2024
1 parent a1471d4 commit 9d17766
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/cog.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ let
mapAttrNames = f: set:
lib.listToAttrs (map (attr: { name = f attr; value = set.${attr}; }) (lib.attrNames set));
addLabelPrefix = labels: (mapAttrNames (x: "run.cog.${x}") labels) // (mapAttrNames (x: "org.cogmodel.${x}") labels);
# hack: replicate calls "pip -U cog" before starting
fakePip = pkgs.writeShellScriptBin "pip" ''
echo "this is not a pip (cognix)"
echo "hint: python -m pip"
'';
# resolve system_packages to cognix.systemPackages
resolvedSystemPackages = map (pkg:
if lib.isDerivation pkg then pkg else
Expand Down Expand Up @@ -115,7 +110,6 @@ in {
cacert
pyEnvWithPip
entirePackage
fakePip
glibc.out
curl
] ++ resolvedSystemPackages;
Expand Down

0 comments on commit 9d17766

Please sign in to comment.