Skip to content

[python-package] [ci] Use manylinux image to produce wheels #5514

Closed
@jameslamb

Description

Summary

Created from #5390 (comment).

The following changes should be made in LightGBM:

  • move from supporting GLIBC >= 2.14 to GLIBC >= 2.23
  • start producing Python wheels using one of the manylinux images (https://github.com/pypa/manylinux)
    • this implies ending official support for Ubuntu 14.04 in LightGBM

Motivation

It has been really difficult to maintain support for older operating systems and versions of GLIBC.

References:

Moving to newer base image and higher floor for GLIBC and supported Ubuntu version should help to alleviate some maintenance burden.

Description

As described in #5390 (comment), LightGBM should upgrade to a manylinux base image supporting at least GLIBC==2.23 (and not too much higher) for producing wheels.

The manylinux README shows the following compatibility for wheels produced on those images (https://github.com/pypa/manylinux).

image

https://ubuntu.com/about/release-cycle describes the release cycle for versions of Ubuntu

image

Using an approach like the following

docker run \
    --rm \
    --entrypoint="" \
    -it quay.io/pypa/manylinux1_x86_64 \
    ldd --version

I found that the GLIBC version for the published manylinux images is as follows.

image GLIBC
manylinux1 2.5
manylinux2010 2.12
manylinux2014 2.17
manylinux_2_28 2.28

References

Other related conversations:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions