Skip to content

Commit

Permalink
Merge pull request #56 from rdmorganiser/uv
Browse files Browse the repository at this point in the history
Add uv descriptions
  • Loading branch information
MyPyDavid authored Dec 5, 2024
2 parents cb176a1 + 49f69f6 commit 2ffd591
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/advanced/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,17 @@ Next you need to copy the `packages` and the `vendor` directory to the machine w
pip install --upgrade --no-index --find-links /path/to/packages/ pip setuptools wheel
pip install --upgrade --no-index --find-links /path/to/packages/ rdmo[allauth,postgres,gunicorn]
```

## Use uv to install a custom Python version

If you want to use a different Python version than your Linux distribution provides, you can use [uv](https://github.com/astral-sh/uv) to set it up. Note that this will only work for the Gunicorn setup. First install `uv`:

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```

Then you can create a virtual environment with the desired Python version using, e.g.:

```bash
uv venv env --seed --python 3.12
```
4 changes: 3 additions & 1 deletion docs/installation/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ We recommend to install the prerequisites using the packaging system of your dis
texlive-xetex-def texlive-xltxtra librsvg2-tools
```

On RHEL/CentOS SELinux is enabled by default. This can result in unexpected errors, depending on where you store the RDMO source code on the system. Some guidance on how to configure SELinux is given at [here](../advanced/index.html#selinux).
On RHEL/CentOS SELinux is enabled by default. This can result in unexpected errors, depending on where you store the RDMO source code on the system. Some guidance on how to configure SELinux is given at [here](../advanced/index).

If the Python version on your system is no longer supported by RDMO, we strongly recommend that you upgrade your Linux distribution, as it is likely to be out of date. If you decide otherwise, it is relatively easy to install a different Python version using [uv](https://github.com/astral-sh/uv). Instructions can be found [here](../advanced/index).

## macOS

Expand Down

0 comments on commit 2ffd591

Please sign in to comment.