Skip to content

Commit 39cc950

Browse files
Merge pull request #200 from DiamondLightSource/uv_docs
Document building pythonSoftIOC with uv
2 parents 131e21f + c00988c commit 39cc950

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Building pythonSoftIOC with ``uv``
2+
==================================
3+
4+
There are some issues when using the ``uv`` tool to build pythonSoftIOC, which
5+
may happen if you try and use this package on an architecture or Python version
6+
where we do not supply pre-built wheels.
7+
8+
If you see an ``ImportError`` that looks like this when running your application::
9+
10+
src/techui_builder/builder.py:13: in <module>
11+
from softioc.builder import records
12+
/cache/venv-for/scratch/eyh46967/dev/temp/techui-builder/lib/python3.13/site-packages/softioc/__init__.py:14: in <module>
13+
from .imports import dbLoadDatabase, registerRecordDeviceDriver
14+
/cache/venv-for/scratch/eyh46967/dev/temp/techui-builder/lib/python3.13/site-packages/softioc/imports.py:10: in <module>
15+
from . import _extension
16+
E ImportError: libdbCore.so.7.0.10.99.0: cannot open shared object file: No such file or directory
17+
18+
19+
Then you need to add these lines to your ``pyproject.toml`` file::
20+
21+
[tool.uv.extra-build-dependencies]
22+
softioc = [{ requirement = "epicscorelibs", match-runtime = true }]
23+
24+
This will tell ``uv`` to do additional dependency checking between build-time and
25+
run-time environments, ensuring the same version of ``epicscorelibs`` is used
26+
in both.
27+
28+
See discussion in `uv issue #17378 <https://github.com/astral-sh/uv/issues/17378>`_.

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Table Of Contents
6363
how-to/make-publishable-ioc
6464
how-to/read-data-from-ioc
6565
how-to/use-soft-records
66+
how-to/build-softioc-with-uv
6667

6768
.. toctree::
6869
:caption: Explanations

0 commit comments

Comments
 (0)