Revert "V5 - Fix sdist build and add CI job for testing it. (#2623)"

This reverts commit eb3336373b.
This commit is contained in:
Wu ChenXu 2025-02-07 23:35:36 +08:00 committed by GitHub
parent eb3336373b
commit 1c33ea1712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 17 deletions

View file

@ -21,11 +21,6 @@ jobs:
uses: docker/setup-qemu-action@v3
with:
platforms: all
# Temporary fix due to
# https://github.com/pypa/cibuildwheel/issues/2257
# https://github.com/docker/setup-qemu-action/issues/188
# https://github.com/tonistiigi/binfmt/issues/215
image: tonistiigi/binfmt:qemu-v8.1.5
- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
@ -67,14 +62,6 @@ jobs:
cd bindings/python
pipx run build --sdist
- name: Test build with sdist
run: |
TMP_DIR=$(mktemp -d)
tar -xf bindings/python/dist/*.tar.gz -C $TMP_DIR/
cd $TMP_DIR/*/src
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF -B build
cmake --build build
- uses: actions/upload-artifact@v4
with:
path: bindings/python/dist/*.tar.gz

View file

@ -850,4 +850,4 @@ if(CAPSTONE_BUILD_CSTEST)
endif()
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/CPackConfig.cmake")
include(CPackConfig.txt)
include(CPackConfig.txt)

View file

@ -89,7 +89,6 @@ def copy_sources():
shutil.copytree(os.path.join(BUILD_DIR, "include"), os.path.join(SRC_DIR, "include"))
src.extend(glob.glob(os.path.join(BUILD_DIR, "*.[ch]")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "*.in")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "*.mk")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "Makefile")))
@ -100,8 +99,6 @@ def copy_sources():
src.extend(glob.glob(os.path.join(BUILD_DIR, "make.sh")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "CMakeLists.txt")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "pkgconfig.mk")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "CPackConfig.txt")))
src.extend(glob.glob(os.path.join(BUILD_DIR, "CPackConfig.cmake")))
for filename in src:
outpath = os.path.join(SRC_DIR, os.path.basename(filename))