-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove support for (undocumented) --compiler argument #36
Conversation
ff7c5fc
to
eaa29a6
Compare
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
==========================================
+ Coverage 74.16% 81.04% +6.87%
==========================================
Files 10 4 -6
Lines 511 269 -242
==========================================
- Hits 379 218 -161
+ Misses 132 51 -81
Continue to review full report at Codecov.
|
extension_helpers/_setup_helpers.py
Outdated
def get_compiler(): | ||
""" | ||
Determines the compiler that will be used to build extension modules. | ||
|
||
Returns | ||
------- | ||
compiler : str | ||
The compiler option specified for the build, build_ext, or build_clib | ||
command; or the default compiler for the platform if none was | ||
specified. | ||
|
||
""" | ||
return new_compiler().compiler_type | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is the upshot of this change then +:100: because it will make #33 a lot easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean at some point we can even deprecate get_compiler
but no rush for that - given how simple it is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would need to provide a way to switch on compiler / platform though as different compilers can use different flags etc.
eaa29a6
to
8d53a34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All praise the holy fire of technical debt removal. 🔥
Before this PR, we allowed the compiler returned by
get_compiler
to be overridden by the--compiler
command-line argument. This wasn't actually documented and removing support for this allows us to clean up quite a bit of code.Needs to be rebased once #34 is merged!