Skip to content

Comments

Find zlib from Xcode or Homebrew on Mojave#1339

Closed
joshfriend wants to merge 1 commit intomasterfrom
fix-zlib-not-found-mojave
Closed

Find zlib from Xcode or Homebrew on Mojave#1339
joshfriend wants to merge 1 commit intomasterfrom
fix-zlib-not-found-mojave

Conversation

@joshfriend
Copy link
Member

this comment from #1219 pretty well summarizes why building pythons on Mojave keeps failing because of lack of zlib.

In this PR, I use the zlib from the xcode commandline tools sdk if available, and homebrew zlib if it is not. If neither are available, the build continues until the checks at the end that assert the presence of zlib and direct the user to the common build issues wiki if no zlib module was compiled. I didn't try to be clever about what happens if both scenarios above fail because the user might have done the manual legacy sdk installation fix or has CFLAGS set in their shell or whatever.

Fixes #1219

@joshfriend joshfriend added type: enhancement os: macOS area: build bugs or improvements with `pyenv install` labels May 1, 2019
@joshfriend joshfriend mentioned this pull request May 1, 2019
3 tasks
@joshfriend joshfriend force-pushed the fix-zlib-not-found-mojave branch from 88d239e to ada0149 Compare May 1, 2019 03:49
@joshfriend joshfriend force-pushed the fix-zlib-not-found-mojave branch from ada0149 to b6a35d8 Compare May 1, 2019 03:58
@joshfriend
Copy link
Member Author

joshfriend commented May 1, 2019

Lots of tests broke and i have no clue why

@adithyabsk
Copy link
Contributor

@joshfriend What can we do to help push this PR along? I am a new contributor to pyenv but would love to look into CI issues if you could provide some direction.

@mikeroll
Copy link
Contributor

Please have a look at my variation (#1353) of the fix - with all the tests passing and the code reorganized a bit.

@joshfriend joshfriend deleted the fix-zlib-not-found-mojave branch June 11, 2019 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build bugs or improvements with `pyenv install` os: macOS type: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install failed, "zlib not available" on macOS Mojave

3 participants