No description
Find a file
2026-04-03 18:57:43 +00:00
.forgejo/workflows fix(ci): przepisz test-exe.yml — native runner, direct wheel extraction, numpy<2.0 2026-04-02 15:31:59 +02:00
example feat: pywine — Dockerfile + CI dla opencv-python-headless + Wine 2026-04-01 18:48:16 +02:00
.gitignore feat: pywine — Dockerfile + CI dla opencv-python-headless + Wine 2026-04-01 18:48:16 +02:00
.hadolint.yaml feat: pywine — Dockerfile + CI dla opencv-python-headless + Wine 2026-04-01 18:48:16 +02:00
Dockerfile feat: pywine — Dockerfile + CI dla opencv-python-headless + Wine 2026-04-01 18:48:16 +02:00
README.md feat: pywine — Dockerfile + CI dla opencv-python-headless + Wine 2026-04-01 18:48:16 +02:00

pywine

Bazowy obraz Docker: Python for Windows uruchamiany pod Wine na Linuksie.

Umożliwia budowanie Windows .exe bezpośrednio w pipeline CI/CD.

Obsługa opencv-python

Opcja 1 — opencv-python-headless (zalecana)

Zamień w pyproject.toml:

# ZAMIAST:
opencv-python = ">=4.13.0.92"

# UŻYJ:
opencv-python-headless = ">=4.13.0.92"

Wersja headless nie wymaga Qt/GTK DLL-i — instaluje się bez problemów pod Wine. Wszystkie funkcje przetwarzania obrazu działają normalnie. Traci się tylko cv2.imshow().

Opcja 2 — opencv-python z GUI (pełna wersja)

Obraz zawiera pre-zainstalowany VC++ 2022 Redistributable (via winetricks vcrun2022). opencv-python zainstaluje się bez żadnych dodatkowych kroków.

Użycie

FROM forgejo.3dcra.eu/3dcra/pywine:3.12

RUN wine pip install opencv-python-headless

Budowanie

# Python 3.12
docker build \
  --build-arg PYTHON_VERSION=3.12 \
  --build-arg PYTHON_MICRO_VERSION=0 \
  -t pywine:3.12 .

# Python 3.13
docker build \
  --build-arg PYTHON_VERSION=3.13 \
  --build-arg PYTHON_MICRO_VERSION=0 \
  -t pywine:3.13 .

Tagi

Tag Python
3.12 Python 3.12.x
3.13 Python 3.13.x