Skip to content

Commit

Permalink
#3651 Debian packaging is a pain
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 9, 2022
1 parent afcee5b commit c2e317a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,6 @@ def nvcc_compile(nvcc_cmd):
sys.exit(1)
t.join()
add_data_files(CUDA_BIN, [f"fs/share/xpra/cuda/{x}.fatbin" for x in kernels])
add_data_files(CUDA_BIN, ["fs/share/xpra/cuda/README.md"])
if WIN32 and (nvjpeg_encoder_ENABLED or nvjpeg_decoder_ENABLED or nvenc_ENABLED or nvdec_ENABLED):
assert nvcc_versions
CUDA_BIN_DIR = os.path.dirname(nvcc)
Expand All @@ -2198,6 +2197,8 @@ def nvcc_compile(nvcc_cmd):
#add_data_files("", glob.glob(f"{CUDA_BIN_DIR}/curand64*dll"))
if nvjpeg_encoder_ENABLED or nvjpeg_decoder_ENABLED:
add_data_files("", glob.glob(f"{CUDA_BIN_DIR}/nvjpeg64*dll"))
if (nvidia_ENABLED and cuda_kernels_ENABLED) or (is_Debian() or is_Ubuntu()):
add_data_files(CUDA_BIN, ["fs/share/xpra/cuda/README.md"])

tace(nvenc_ENABLED, "xpra.codecs.nvidia.nvenc.encoder", "nvenc")
tace(nvdec_ENABLED, "xpra.codecs.nvidia.nvdec.decoder", "nvenc,cuda")
Expand Down

0 comments on commit c2e317a

Please sign in to comment.