Skip to content

Commit

Permalink
Add support for develop editable
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Jul 19, 2024
1 parent f86b49f commit c517dcb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ nosetests.xml
coverage.xml
htmlcov
sqlelf/_version.py
.venv/
13 changes: 10 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@
devShells = forAllSystems (system:
with nixpkgsFor.${system}; {
default = mkShellNoCC {
venvDir = "./.venv";
packages = [
python3Packages.pip
# This execute some shell code to initialize a venv in $venvDir before
# dropping into the shell
python3Packages.venvShellHook
];
# bring all the dependencies needed to build sqlelf
inputsFrom = [sqlelf];
packages = [python3Packages.pip];
shellHook = ''
echo "Happy hacking."
postVenvCreation = ''
pip install --editable ".[dev]"
'';
};
});
Expand Down

0 comments on commit c517dcb

Please sign in to comment.