You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/scripting/uv.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
+
{#uv}
1
2
# `uv` and python environments
2
3
3
-
`uv` is a Python package and project manager. See [`uv`'s docs](https://docs.astral.sh/uv/) for more information.
4
+
[`uv`](https://github.com/astral-sh/uv) is a Python package and project manager. See [`uv`'s docs](https://docs.astral.sh/uv/) for more information.
4
5
5
6
We are currently considering whether we could use it to split up our python processes and use it for python version management on instrument machines.
6
7
@@ -10,7 +11,15 @@ We are currently considering whether we could use it to split up our python proc
10
11
-`c:\Instrument\apps\uv\snakes` is the location of individually-versioned python interpreter executables. These are "bare" interpreters, that do not contain any dependencies such as `genie_python`.
11
12
-`c:\Instrument\var\tmp\uvcache` is the location of `uv`'s pip download cache. This can safely be deleted and will be recreated as-needed.
12
13
13
-
## Details of `uv` setup
14
+
{#installing_uv}
15
+
## Installing `uv`
16
+
We have a script which is used in various places to install `uv`. This will install `uv` into `c:\Instrument\apps\uv\` and can be run on instruments, build machines and developer machines.
17
+
18
+
To install `uv` run `\\isis\shares\ISIS_Experiment_Controls_Public\ibex_utils\installation_and_upgrade\install_or_update_uv.bat`
19
+
20
+
For developer machines currently this can be used for things that aren't in `\Instrument\Apps\EPICS\` such as projects you have in `Instrument\dev\` or for manually running the items below.
21
+
22
+
## Usage of `uv` in IBEX
14
23
15
24
### IBEX install scripts
16
25
@@ -30,4 +39,5 @@ It can be used on Github actions CI, but isn't currently.
30
39
31
40
In the future we may consider using `uv` to create and build virtual environments for each respective python process that runs on the NDX. This requires some decisions and subsequent work:
32
41
-`uv.lock` files - should we keep them in source, or at least on the build server, then build virtual environments on the NDXes with those specific versions?
33
-
- python wheels need to be available for everything we use - the NDXes do not have compilers ie. Visual Studio installed.
42
+
- python wheels need to be available for everything we use - the NDXes do not have compilers ie. Visual Studio installed.
0 commit comments