-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 astropy-helpers #1047
Remove astropy-helpers #1047
Conversation
Thanks to @astrofrog and @Cadair for putting together the very clear instructions for how to replace the astropy-helpers package with standard tooling. I have done my best to follow the APE 17 instructions, including using
All of the above produce basically the same traceback, so I am hopeful that once the cause of the error is identified, that halotools will become independent of the astropy-helpers and ready to release v0.8. Any help you can provide in identifying this issue would be much appreciated.
|
In all my builds, I now get an error message related to compiling cython:
This PR does not touch any of the cython, and so I think maybe the migration of the tooling has inadvertently changed the compiler in some way. @Cadair does this seem like the right explanation? I'm not finding a lot of useful information online about this error. A lot of the cython uses the Copying more of the traceback in case it helps:
|
Ok so one set of explanations here is that by updating to To investigate that, I started poking around for info about |
I have been exploring solutions to this problem using two minimal reproducer repositories. The first repo here is based on setup.py, and the second repo here was configured using cookiecutter and is based on As pointed out here, the root issue seems to be related to the basic mechanism for creating multiple cython extensions using the
So I think the workaround to replace |
Ok so by the end of yesterday, I made some headway on a different approach in which I revert to using an elementary setup.py package layout for halotools, drop the extensions-helpers dependency, and manually adding the cython extensions by hand. I started doing this module by module (using |
@aphearin - I'd like to help try and get this working with extension-helpers - should I try and see if I can get it to work ignoring the last commit here or is there a better place to start? |
Oh, great catch @astrofrog! This makes the compiler errors make much more sense - they seemed like some weird string was being passed as a compiler argument, and so I bet your fix to the minimal reproducer will also work with halotools. The most recent commit 2e1e2bb now has passing tests on CI after abandoning the extensions-helpers, but I can roll that back and continue to use the extensions-helpers if you foresee continued support for this library. Either way, I know it's an awful lot of source code and extensions, so many thanks for taking a look and (hopefully) finding the fix! |
We will definitely be supporting extension-helpers going forward so I would recommend continuing to use it if you are happy to! |
Ok, great, yes I'm happy to keep the extensions-helpers dependency then. I'll go ahead and implement your fix. |
Thanks again for the help @astrofrog. Your fix was all that was needed in order to get halotools working again without astropy-helpers and using |
This PR follows the instructions provided in APE 17 to remove the halotools dependency on astropy-helpers.