Wouter Vanden Hove
Wouter Vanden Hove
Possibility for no output when running a script with `uv run main.py` (that has filled requirements)
@zanieb > What's the problem with the output? why should the output of "uv run hello.py" be different than python hello.py? ``` uv run -q hello.py Hello world! ``` This...
+10 for helper-functions to add directories to $PATH
``` dir := `parent(canonicalize(justfile()))` ``` this line fails: ``` bash: -c: line 1: syntax error near unexpected token `canonicalize' bash: -c: line 1: `parent(canonicalize(justfile()))' error: Backtick failed with exit code...
this works to get the canonical justfile-directory: ``` canonical_justfile_dir := parent_directory(canonicalize(justfile())) ``` with a symlinked justfile in the root of the linux filesystem /justfile -> /etc/justfile ``` just --evaluate ......
``` import "${import_dir}/doc8.justfile" ``` or ``` import "{{import_dir}}/doc8.justfile" ``` gives: ``` tsc@661febeb270f:~$ just --evaluate error: Could not find source file for import. ——▶ justfile:33:8 │ 33 │ import "{{import_dir}}/doc8.justfile" │...
Note that imports are currently happening relative to the non-canonical justfile-dir. This is incorrect behaviour since you can symlink from many different directories (I started out using multiple symlinks, ending...
uv 0.7.3 Given a python-project and a pyproject.toml, is there currently a way to reliably always create the venv with --relocatable? I. e. without manually creating the venv and typing...
@ophiry Try ``` uv pip install sitecustomize-entrypoints ``` I use site sitecustomize.py on every project. I co-developed this package that installs a sitecustomize.py in your venv and will run any...
create a new project with a package: ``` > cd /tmp > uv init foo --package > cd foo ``` in the pyproject.toml, add a project-entrypoint for the name "sitecustomize"....
@5j9 You can just add it as a dependency. No build-system needed.