Skip to content

Not able to build pygit2 with python 3.9 using wheels #1038

Closed
@pranav165

Description

@pranav165

Building wheel for pygit2 (PEP 517): started
[14:10:12] Building wheel for pygit2 (PEP 517): finished with status 'error'
[14:10:12] ERROR: Command errored out with exit status 1:
[14:10:12] command: /home/e2e/venv/bin/python3 /home/e2e/venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp6z6mbv9f
[14:10:12] cwd: /tmp/pip-install-8yb1uf3g/pygit2
[14:10:12] Complete output (63 lines):
[14:10:12] running bdist_wheel
[14:10:12] running build
[14:10:12] running build_py
[14:10:12] creating build
[14:10:12] creating build/lib.linux-x86_64-3.9
[14:10:12] creating build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/init.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/_build.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/_run.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/blame.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/callbacks.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/config.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/credentials.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/errors.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/ffi.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/index.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/refspec.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/remote.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/repository.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/settings.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/submodule.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] copying pygit2/utils.py -> build/lib.linux-x86_64-3.9/pygit2
[14:10:12] creating build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/attr.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/blame.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/buffer.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/callbacks.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/checkout.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/clone.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/common.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/config.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/describe.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/diff.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/errors.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/graph.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/index.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/indexer.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/merge.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/net.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/oid.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/pack.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/proxy.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/refspec.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/remote.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/repository.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/revert.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/stash.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/strarray.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/submodule.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/transport.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] copying pygit2/decl/types.h -> build/lib.linux-x86_64-3.9/pygit2/decl
[14:10:12] running build_ext
[14:10:12] generating cffi module 'build/temp.linux-x86_64-3.9/pygit2._libgit2.c'
[14:10:12] creating build/temp.linux-x86_64-3.9
[14:10:12] building 'pygit2._pygit2' extension
[14:10:12] creating build/temp.linux-x86_64-3.9/src
[14:10:12] gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -I/home/e2e/venv/include -I/usr/local/include/python3.9 -c src/blob.c -o build/temp.linux-x86_64-3.9/src/blob.o
[14:10:12] In file included from src/blob.c:30:
[14:10:12] src/blob.h:33:10: fatal error: git2.h: No such file or directory
[14:10:12] #include <git2.h>
[14:10:12] ^~~~~~~~
[14:10:12] compilation terminated.
[14:10:12] error: command '/usr/bin/gcc' failed with exit code 1
[14:10:12] ----------------------------------------
[14:10:12] ERROR: Failed building wheel for pygit2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions