LibCST icon indicating copy to clipboard operation
LibCST copied to clipboard

Publishing wheels for musl (alpine 3.17)

Open gmile opened this issue 1 year ago • 1 comments

The library can be built on musl with no issues currently. Confirmed by building it using alpine:3.17 as a base image:

FROM alpine:3.17 AS build

WORKDIR /tmp

RUN apk add \
  git \
  cargo \
  py-pip

RUN pip3 install \
  setuptools_rust \
  wheel

RUN apk add git cargo py-pip; \
    pip3 install setuptools_rust wheel; \
    git clone --depth 1 --branch v1.0.0 https://github.com/Instagram/LibCST /tmp; \
    cd LibCST; python setup.py bdist_wheel

FROM scratch AS export

COPY --from=build /tmp/dist/libcst-1.0.0-cp310-cp310-linux_x86_64.whl .

Could building & publishing a wheel be enbled for musl? 🙏 This would save some hassle for people who just want to install it using pip (myself included).

gmile avatar Jun 22 '23 11:06 gmile