Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: allow more platforms, add unique function name #3

Merged
merged 3 commits into from
Dec 31, 2019
Merged

BUG: allow more platforms, add unique function name #3

merged 3 commits into from
Dec 31, 2019

Conversation

mattip
Copy link
Contributor

@mattip mattip commented Dec 26, 2019

xref gh-2

Add more platforms to the original version of get_distutils_platform

Also add another function that is unique to this repo, which extends the original function for the manylinux version. In time, we should

  • convert downstream users MacPython/openblas-libs and the various MacPython/*-wheels to the new function
  • deprecate get_distutils_platform

@mattip
Copy link
Contributor Author

mattip commented Dec 26, 2019

CI is failing for Erlang. Is it supposed to pass?

@matthew-brett
Copy link
Contributor

I was only using Erlang because, in the old days, it was the language Travis-CI suggested for a language-agnostic application. Any other is OK.

@mattip
Copy link
Contributor Author

mattip commented Dec 27, 2019

tests are passing

@mattip
Copy link
Contributor Author

mattip commented Dec 30, 2019

@matthew-brett ping

Copy link
Contributor

@matthew-brett matthew-brett left a comment

Choose a reason for hiding this comment

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

Small comments ...

# Modify fat architecture tags on macOS to reflect compiled architecture
# For non-darwin, report manylinux version
local plat=$1
local MB_ML_VER=${MB_ML_VER:-1}
Copy link
Contributor

Choose a reason for hiding this comment

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

avoid local names in all caps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -29,6 +29,32 @@ function get_distutils_platform {
echo "macosx_${target}_${plat}"
}

function get_distutils_platform_ex {
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do you use this function?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you write some tests for the function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

used new function, added tests for old (to be deprecated) function

@mattip
Copy link
Contributor Author

mattip commented Dec 31, 2019

new tests are passing

@matthew-brett
Copy link
Contributor

Just checking - but is the plan that, in due course, you will change the ex function to accept the new platforms (ARM etc)? When will that happen do you think?

@mattip
Copy link
Contributor Author

mattip commented Dec 31, 2019

It already should accept other platforms (the old function as well)

@matthew-brett
Copy link
Contributor

Ah sorry - read through the semicolons.

@matthew-brett matthew-brett merged commit d430fe6 into MacPython:master Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants