-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Enter directory when creating venv
This commit does several things in one go: 1. Fixes `libstdc++.so.6` issues due to poetry using unwrapped Python when used in combination with `languages.python.directory`. This was because the `poetry env use` wasn't given the source directory. 2. Fixes poetry creating incorrect shebangs because `languages.python.directory` is a relative path. This is a known issue: python-poetry/poetry#9415 3. Cleans up the bash code by using pushd/popd.
- Loading branch information
Showing
5 changed files
with
1,103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
python -c "from PIL import Image" | ||
python -c "import grpc_tools.protoc" | ||
python -c "import transformers" | ||
|
||
# TODO: invoke a subprocess with an old glibc and assert it doesn't crash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ pkgs, lib, ... }: { | ||
packages = [ pkgs.cairo ]; | ||
|
||
languages.python = { | ||
enable = true; | ||
directory = "subdir"; | ||
poetry.enable = true; | ||
}; | ||
} |
Oops, something went wrong.