File size: 2,161 Bytes
7c14868 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | # LiveCodeBench Portable Venv Bundle
This directory contains a portable transfer bundle for the LiveCodeBench Python environment.
## Files
- `LiveCodeBench-venv-portable-20260407.tar.zst`
Portable environment archive.
- `LiveCodeBench-venv-portable-20260407.tar.zst.sha256`
SHA256 checksum file for archive verification.
- `restore_livecodebench_venv.sh`
Restore the environment on the target server and rewrite internal absolute paths.
- `send_livecodebench_venv_to_server.sh`
Copy the bundle to a remote server with `scp`.
## Recommended Workflow
Run from this directory on the source server:
```bash
cd ~/LiveCodeBench-venv-portable-bundle
bash ./send_livecodebench_venv_to_server.sh user@your-server ~ /data/repos/LiveCodeBench/.venv
```
Then restore on the target server:
```bash
ssh user@your-server 'bash ~/restore_livecodebench_venv.sh ~/LiveCodeBench-venv-portable-20260407.tar.zst /data/repos/LiveCodeBench/.venv'
```
## Manual Workflow
If you prefer to copy files yourself:
```bash
scp LiveCodeBench-venv-portable-20260407.tar.zst \
LiveCodeBench-venv-portable-20260407.tar.zst.sha256 \
restore_livecodebench_venv.sh \
user@your-server:~
```
Restore manually on the target server:
```bash
bash ~/restore_livecodebench_venv.sh \
~/LiveCodeBench-venv-portable-20260407.tar.zst \
/data/repos/LiveCodeBench/.venv
```
## What The Restore Script Does
- Verifies the archive checksum when the `.sha256` file is present.
- Extracts the environment.
- Rewrites shebangs and `pyvenv.cfg` for the target path.
- Uses the bundled `.python-home` runtime so the venv does not depend on the original source machine's `uv` Python location.
## Notes
- The target server should have a compatible Linux userspace.
- Native wheels may still require compatible CPU architecture, `glibc`, `libstdc++`, and CUDA driver/runtime versions.
- The default target path is `/data/repos/LiveCodeBench/.venv`, but you can restore to a different path by passing a different second argument to `restore_livecodebench_venv.sh`.
## Checksum
Current archive SHA256:
```text
da52c6e9200a7f14b8fba8d733b0b168f4cdf42c69f328986405b0a53fe5a0a0
```
|