Skip to content

libbtrfsutil python bindings not available in pip #310

@niklasfi

Description

@niklasfi

The python bindings located in libbtrfsutil/python are not available within the pypi repository. This makes it very complicated for programmers to use them.

Since most of the work is already done (setup.py is included in the repository), it was not that difficult for me to create and upload a pipy package to the testing server using the following Dockerfile:

FROM python:3.8 as build

ARG GIT_BRANCH=master
ARG TWINE_USERNAME
ARG TWINE_PASSWORD

RUN apt update && apt install -y \
        libbtrfsutil-dev \
        patchelf \
    && rm -rf /var/lib/apt/lists/*

RUN pip install setuptools wheel twine auditwheel

RUN git clone --branch "$GIT_BRANCH" --depth 1 https://github.com/kdave/btrfs-progs.git /btrfs-progs/

WORKDIR /btrfs-progs/libbtrfsutil/python
RUN python setup.py sdist bdist_wheel
RUN python -m auditwheel repair dist/btrfsutil-*.whl
RUN python -m twine upload --repository testpypi wheelhouse/btrfsutil-*.whl

The result is available on the pypi testing server.

Is the btrfs-progs project interested in adding python package creation to its ci pipelines? If so, how can I help integrating it?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions