Skip to content

Commit

Permalink
Merge pull request #5 from lowRISC/python
Browse files Browse the repository at this point in the history
Remove custom python override
  • Loading branch information
hcallahan-lowrisc authored Jan 2, 2024
2 parents 2bcab64 + 4242a3a commit ffe3a76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 65 deletions.
10 changes: 9 additions & 1 deletion pkgs/python_ot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,21 @@
preferWheel = true;
};
};

# Nix wraps python programs which causes PATH to change. We want to keep
# PATH in case a program needs to invoke user-defined programs.
dontwrap-overlay = final: prev: {
fusesoc = prev.fusesoc.overridePythonAttrs {
dontWrapPythonPrograms = true;
};
};
in
poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = import ./python.nix {python = python3;};
overrides = [
preferwheel-overlay
buildreqs-overlay
dontwrap-overlay
poetry2nix.defaultPoetryOverrides
];
}
20 changes: 0 additions & 20 deletions pkgs/python_ot/python.nix

This file was deleted.

44 changes: 0 additions & 44 deletions pkgs/python_ot/sitecustomize.py

This file was deleted.

0 comments on commit ffe3a76

Please sign in to comment.