From b0377c95b4f8a5e8d2caf01e7732d11aefac97fd Mon Sep 17 00:00:00 2001 From: Catalin Patulea Date: Sat, 27 Jan 2024 11:34:08 +0000 Subject: [PATCH] setuptools-rust: fix build due to missing setup.py. Looks like PyPi tarball doesn't have setup.py, which jhbuild needs: *** Checking out python3-setuptools_rust *** [66/137] *** Building python3-setuptools_rust *** [66/137] python3 setup.py build --build-base /Users/runner/.cache/jhbuild/build/setuptools-rust-1.8.1 python3: can't open file '/Users/runner/gtk/source/setuptools-rust-1.8.1/setup.py': [Errno 2] No such file or directory *** Error during phase build of python3-setuptools_rust: ########## Error running python3 setup.py build --build-base /Users/runner/.cache/jhbuild/build/setuptools-rust-1.8.1 *** [66/137] Add it back using a patch. https://github.com/Xpra-org/xpra/issues/4017#issuecomment-1890914435 --- patches/setuptools-rust-setup-py.patch | 16 ++++++++++++++++ xpra-python3.modules | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 patches/setuptools-rust-setup-py.patch diff --git a/patches/setuptools-rust-setup-py.patch b/patches/setuptools-rust-setup-py.patch new file mode 100644 index 00000000..c79fd34a --- /dev/null +++ b/patches/setuptools-rust-setup-py.patch @@ -0,0 +1,16 @@ +commit 61401d62c557246600b45d09d471450e97b8c6f0 +Author: Catalin Patulea +Date: Sat Jan 27 11:32:52 2024 +0000 + + Add skeleton setup.py. + +diff --git a/setup.py b/setup.py +new file mode 100755 +index 0000000..851cb3f +--- /dev/null ++++ b/setup.py +@@ -0,0 +1,3 @@ ++#!/usr/bin/env python3 ++from setuptools import setup ++setup() +\ No newline at end of file diff --git a/xpra-python3.modules b/xpra-python3.modules index 423e7aa3..d1b1a694 100644 --- a/xpra-python3.modules +++ b/xpra-python3.modules @@ -171,7 +171,9 @@ + version="1.8.1"> + +