Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/build_wheel_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,18 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-latest, macos-15-intel]
os: [ubuntu-22.04, windows-2022, macos-latest, macos-13]
fail-fast: false
env:
# CIBW_BEFORE_ALL: >
# cd ./dep &&
# cmake . &&
# cmake --build . --config RELEASE &&
# cd ..
CIBW_BEFORE_BUILD: >
cd ./dep &&
cmake . &&
cmake --build . --config RELEASE &&
cd .. &&
pip install -r requirements.txt
CIBW_ARCHS_LINUX: "x86_64 aarch64 riscv64"
CIBW_ARCHS_LINUX: "x86_64 aarch64"
CIBW_ARCHS_WINDOWS: "AMD64 x86 ARM64"
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_ENVIRONMENT: USE-CYTHON="1" USE-CFFI="1" USE-LIB="1"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ENVIRONMENT: USE-CYTHON="1" USE-CFFI="1"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
CIBW_ENABLE: "cpython-freethreading"
CIBW_ALLOW_EMPTY: True
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ lib/
*.dll
*.lib
*.a
*.so*
*.so*
*.egg-info/
_codeql_detected_source_root
52 changes: 33 additions & 19 deletions pyrsync/backends/cython/_rsync.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def build_extensions(self):
extra_objects.append(r"./dep/Release/rsync.lib")
for file in glob.glob("./dep/Release/*.dll"):
shutil.copy(file, "./pyrsync/backends/cython")
elif uname.system == "Darwin":
# macOS uses .dylib extension
extra_objects.append(r"./dep/librsync.dylib")
for file in glob.glob("./dep/*.dylib"):
shutil.copy(file, "./pyrsync/backends/cython")
else:
extra_objects.append(r"./dep/librsync.so")
for file in glob.glob("./dep/*.so*"):
Expand Down