Skip to content

zlib-dev change breaks pyenv installs #77472

@QuiteClose

Description

@QuiteClose

Recently, this commit changed the zlib-dev dependencies: 26f8c4f Since then, pyenv installs have been failing with a non-zero exit code. Build logs show that zlib was not included in the python build because it was not found.

Workaround: Explicitly installing the zlib-static package provides the libz.a file that python's distutils expects. Because pyenv then detects zlib python builds can succeed.

I posted here for informational purposes, as I was using an image that only installed zlib-dev - the pyenv build stage was failing. The docker build output doesn't make this especially obvious and no doubt pyenv should be more flexible in their zlib detection. (They rely on the deprecated distutils package to detect libraries and that expects the .a suffix.)

I'm happy with the workaround to explicitly installing zlib-static. Noting the change in behaviour here, as I suspect this post would have saved me some time.

Maybe ignore? Forcing people to explicitly install zlib could be desired behaviour. Please close if this is not an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions