#5306 Obsolete installation instructions for pygit2
Opened 2 years ago by zpagure. Modified 8 months ago

The "manual" paragraph of the installation section in the README mentions the installation libgit2-devel from the OS package manager, and then to install pygit2==<version of libgit2 found>.* from pip.
This was giving me errors though. I found this comment that mention how libgit2 is included on pygit2 for newer versions.
I think the README should be updated by removing this step. Pygit2 and libgit2 should be installed with just the "pip install -r requirements.txt" step


@zpagure

The real problem with those instructions is, they assume that pygit2 versions correspond to the libgit2 versions, which is false.

The requirements.txt file requires pygit2 <=1.8.0, which is actually a very old version based on libgit2-1.3. There's no wheel for pygit2-1.8.0, so it has to be built from source. But since current Fedora only provides libgit2-devel-1.7.1, it won't build even with libgit2-devel installed.

It's not clear to me if Pagure really requires libgit-1.3 or earlier, or if the pygit2 version requirement should be bumped to something more current like pygit2 <1.14 (all 1.13 versions are based on libgit2-1.7).

They used to a long time ago. It stopped and the documentation was not updated. Pull request welcome to update our references.

Metadata Update from @ngompa:
- Issue tagged with: bug, easyfix

a year ago

Metadata Update from @wombelix:
- Issue set to the milestone: 6.x

8 months ago

Log in to comment on this ticket.

Metadata