Skip to content

Commit 9064fe1

Browse files
comment about python env managers
1 parent 14dd808 commit 9064fe1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/src/python-packages.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ Instead, it is recommended for you to craft your own environment which is lighte
1111
it easier to reproduce and move around clusters) and more nimble (allowing you to upgrade
1212
packages if you want to).
1313

14+
There are many programs satisfying this goal of managing a Python environment that
15+
can exist on your system without needing to run a container image. These can be
16+
faster than launching a container image but may not give you access to as fixed
17+
of an environment since many of the tools rely on system-installed Python.
18+
One tool that I (Tom) would suggest is [uv](https://docs.astral.sh/uv/).
19+
It handles the Python version as well as the versions of the packages you are using.
20+
You can "lock" these into a `uv.lock` file (committed to your analysis repository),
21+
so that you identical Python environments when switching between machines (or
22+
collaborating with other people).
23+
24+
Below, I've outlined how to do a similar procedure using `denv` instead of `uv`
25+
since I'm assuming you've already installed `denv` for use with ldmx-sw.
1426
```
1527
cd my-analysis
1628
denv init python:3.12 # choose python version

0 commit comments

Comments
 (0)