install rife directly from PyPI; changed setuptools to pdm

This commit is contained in:
k4yt3x 2022-02-27 02:39:48 +00:00
parent 0b154a715c
commit 8cb64d3b70
2 changed files with 4 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# Name: Video2X Dockerfile (CUDA) # Name: Video2X Dockerfile (CUDA)
# Creator: K4YT3X # Creator: K4YT3X
# Date Created: February 3, 2022 # Date Created: February 3, 2022
# Last Modified: February 12, 2022 # Last Modified: February 26, 2022
# stage 1: build the python components into wheels # stage 1: build the python components into wheels
FROM docker.io/nvidia/cuda:11.6.0-runtime-ubuntu20.04 AS builder FROM docker.io/nvidia/cuda:11.6.0-runtime-ubuntu20.04 AS builder
@ -13,12 +13,8 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
python3-pip python3-opencv python3-pil \ python3-pip python3-opencv python3-pil \
python3-dev libvulkan-dev glslang-dev glslang-tools \ python3-dev libvulkan-dev glslang-dev glslang-tools \
build-essential swig git \ build-essential swig \
&& git config --global http.postBuffer 1048576000 \ && pip wheel -w /wheels wheel pdm-pep517 .
&& git config --global https.postBuffer 1048576000 \
&& pip wheel -w /wheels \
wheel setuptools setuptools_scm \
rife-ncnn-vulkan-python@git+https://github.com/media2x/rife-ncnn-vulkan-python.git .
# stage 2: install wheels into the final image # stage 2: install wheels into the final image
FROM docker.io/nvidia/cuda:11.6.0-runtime-ubuntu20.04 FROM docker.io/nvidia/cuda:11.6.0-runtime-ubuntu20.04

View File

@ -24,7 +24,7 @@ Last Modified: February 16, 2022
# version assignment has to precede imports to # version assignment has to precede imports to
# prevent setup.cfg from producing import errors # prevent setup.cfg from producing import errors
__version__ = "5.0.0-beta4" __version__ = "5.0.0-beta5"
# local imports # local imports
from .video2x import Video2X from .video2x import Video2X