Skip to content

Commit 0c85502

Browse files
authored
match platforms like 'macOS-*' to osx suffix
`platform.platform()` returns a macOS version, rather than a Darwin version as of python 3.8. Both should match the 'osx.tar.gz' pact build.
1 parent 9a0eaa7 commit 0c85502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def install_ruby_app(bin_path):
6464
uri = ('https://github.com/pact-foundation/pact-ruby-standalone/releases'
6565
'/download/v{version}/pact-{version}-{suffix}')
6666

67-
if 'darwin' in target_platform:
67+
if 'darwin' in target_platform or 'macos' in target_platform:
6868
suffix = 'osx.tar.gz'
6969
elif 'linux' in target_platform and IS_64:
7070
suffix = 'linux-x86_64.tar.gz'

0 commit comments

Comments
 (0)