Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packaging native Git binary into application

I'm writing a Python app that needs to call some Git commands. I first looked at libgit2 and pygit2, but they lack some of the features I need, like git remote. Instead, I now want to find a way to include the native Git binaries in my application, rather that using a Git library. Also, while the app will probably become cross-platform later, I'm currently concerned with creating a solid Windows version, first.

How can I package the native Git binaries into a Windows Python-based application? Would this require me to ship the Git installer along with my application, or is there a portable version of Git available that I can bundle directly?

like image 870
Maxim Zaslavsky Avatar asked Aug 29 '26 03:08

Maxim Zaslavsky


1 Answers

Dulwich is the pure-Python implementation of the Git file formats and protocols and could help here.
You can find its repo on GitHub.

like image 94
VonC Avatar answered Aug 31 '26 16:08

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!