Skip to content

Commit 1c33ea1

Browse files
authored
Revert "V5 - Fix sdist build and add CI job for testing it. (#2623)"
This reverts commit eb33363.
1 parent eb33363 commit 1c33ea1

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

.github/workflows/python-publish-release.yml

-13
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ jobs:
2121
uses: docker/setup-qemu-action@v3
2222
with:
2323
platforms: all
24-
# Temporary fix due to
25-
# https://github.com/pypa/cibuildwheel/issues/2257
26-
# https://github.com/docker/setup-qemu-action/issues/188
27-
# https://github.com/tonistiigi/binfmt/issues/215
28-
image: tonistiigi/binfmt:qemu-v8.1.5
2924

3025
- name: Build wheels
3126
uses: pypa/[email protected]
@@ -67,14 +62,6 @@ jobs:
6762
cd bindings/python
6863
pipx run build --sdist
6964
70-
- name: Test build with sdist
71-
run: |
72-
TMP_DIR=$(mktemp -d)
73-
tar -xf bindings/python/dist/*.tar.gz -C $TMP_DIR/
74-
cd $TMP_DIR/*/src
75-
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF -B build
76-
cmake --build build
77-
7865
- uses: actions/upload-artifact@v4
7966
with:
8067
path: bindings/python/dist/*.tar.gz

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,4 +850,4 @@ if(CAPSTONE_BUILD_CSTEST)
850850
endif()
851851

852852
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/CPackConfig.cmake")
853-
include(CPackConfig.txt)
853+
include(CPackConfig.txt)

bindings/python/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def copy_sources():
8989
shutil.copytree(os.path.join(BUILD_DIR, "include"), os.path.join(SRC_DIR, "include"))
9090

9191
src.extend(glob.glob(os.path.join(BUILD_DIR, "*.[ch]")))
92-
src.extend(glob.glob(os.path.join(BUILD_DIR, "*.in")))
9392
src.extend(glob.glob(os.path.join(BUILD_DIR, "*.mk")))
9493

9594
src.extend(glob.glob(os.path.join(BUILD_DIR, "Makefile")))
@@ -100,8 +99,6 @@ def copy_sources():
10099
src.extend(glob.glob(os.path.join(BUILD_DIR, "make.sh")))
101100
src.extend(glob.glob(os.path.join(BUILD_DIR, "CMakeLists.txt")))
102101
src.extend(glob.glob(os.path.join(BUILD_DIR, "pkgconfig.mk")))
103-
src.extend(glob.glob(os.path.join(BUILD_DIR, "CPackConfig.txt")))
104-
src.extend(glob.glob(os.path.join(BUILD_DIR, "CPackConfig.cmake")))
105102

106103
for filename in src:
107104
outpath = os.path.join(SRC_DIR, os.path.basename(filename))

0 commit comments

Comments
 (0)