Skip to content

Commit

Permalink
Restore 'get_versions' attribute, allowing older mpi4py to monkeypatc…
Browse files Browse the repository at this point in the history
…h it. Fixes pypa/setuptools#2969.
  • Loading branch information
jaraco committed Dec 29, 2021
1 parent 79f6a3f commit 8c160a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions distutils/cygwinccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ def is_cygwincc(cc):
out_string = check_output(shlex.split(cc) + ['-dumpmachine'])
return out_string.strip().endswith(b'cygwin')


get_versions = None
"""
A stand-in for the previous get_versions() function to prevent failures
when monkeypatched. See pypa/setuptools#2969.
"""

1 comment on commit 8c160a9

@lazka
Copy link
Contributor

@lazka lazka commented on 8c160a9 Dec 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! and sry for the breakage :/

Please sign in to comment.