https://github.com/zanieb/git-pypi.git
Python wheels for Git.
This project builds and packages Git binaries for distribution via PyPI. The resulting git-bin package allows users to install Git as a Python dependency.
macOS and Linux wheels are built from source.
Windows wheels download official MinGit builds from Git for Windows.
uv run make_wheels.py --version 2.47.1 --platform win_amd64
uv run make_wheels.py --version 2.47.1 --platform win_arm64
uv run make_wheels.py --version 2.47.1 --platform win32
Linux builds are performed in Docker using Alpine Linux and are fully statically linked against musl libc. This means Linux wheels have zero runtime dependencies and will run on any Linux distribution (glibc or musl based).
The static build includes:
./build/linux/build.sh 2.47.1 x86_64
./build/linux/build.sh 2.47.1 aarch64
uv run make_wheels.py --version 2.47.1 --platform linux_x86_64 --binary-dir build/output/linux_x86_64
uv run make_wheels.py --version 2.47.1 --platform linux_aarch64 --binary-dir build/output/linux_aarch64
macOS builds are dynamically linked against system libraries only. This ensures portability across macOS versions without bundling any third-party libraries. The build targets:
/usr/lib/libcurl.4.dylib - HTTP/HTTPS transport/usr/lib/libz.1.dylib - compression/usr/lib/libiconv.2.dylib - character encoding/usr/lib/libexpat.1.dylib - XML parsing/usr/lib/libSystem.B.dylib - system calls/System/Library/Frameworks/CoreFoundation.framework - Core Foundation/System/Library/Frameworks/CoreServices.framework - Core Services./build/macos/build.sh 2.47.1
uv run make_wheels.py --version 2.47.1 --platform macos_arm64 --binary-dir build/output/macos_arm64
uv run make_wheels.py --version 2.47.1 --platform macos_x86_64 --binary-dir build/output/macos_x86_64
The build tooling is licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.
The distributed Git binaries are licensed under GPL-2.0 and include third-party components with their own licenses. See NOTICE for details and licenses/ for the full license texts.
This project is inspired by ziglang, which distributes the Zig compiler as Python wheels.