-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support for pip (replaces PR#19) #24
Support for pip (replaces PR#19) #24
Conversation
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.
Can we also work out why the travis is failing for OSX ? We need to get that working before this can be merged.
The Travis build is failing with
on the osx builds. Does changing the relevant environment variable in the .travis.yml fix this issue? |
Unfortunately not. I tried that in commit b822c82 and the travis log shows |
I made an attempt to deal with clang on macOS. As far as I can tell it's working on macOS with clang and gcc, and on linux with gcc and intel compilers. The travis tests aren't running though, for some reason. |
I agree that this is bizarre, although I'm now no longer convinced it's associated with the random number generator. I completely replaced the random number generator, but there are still memory issues that arise when MPI is turned on for OSX. It's more likely that this is some other underlying memory issue that only arises by chance around the time that the RNG is initialised. |
It could be due to the fact that |
OK, I think this is almost ready to be merged. One issue that @Pablo-Lemos has encountered is that on a MAC, if mpi is not installed, then this fails. One can obviously install by passing @tilmantroester What do you think the best way to implement this is? |
One option would be to ignore the mpi flag on macOS (we already check the OS anyway) and print a warning. I'll have a look at it. |
Hi @tilmantroester -- what remains to be done to get this PR over the line? |
I merged in master, so should be able to merge now. I'd check if travis passes before merging though but travis doesn't seem to run. |
Hi @tilmantroester. I think I've fixed travis now. We can check that the CI is now working by your pushing a commit which bumps the version number to 1.18.0 Whilst this makes it pip-installable with a |
@williamjameshandley I haven't uploaded to pypi myself. I think it's just running setup.py with sdist, adding some meta data to setup.py, and then uploading it. |
Many thanks for your hard work @tilmantroester. I will refrain from creating a release now as users start to try to use this in practice, but will make a 1.18.0 once I've got confirmation that it's working on a variety of systems |
This is essentially PR #19 but branched off master, so that it's easier to stay up-to-date. It also restricts the changes to
setup.py
and leaves the existing makefiles unchanged (up to some QOL improvements).Other improvements:
MPI
andDEBUG
can be set to 0 and 1 to disable/enable MPI support and debug flags. Forsetup.py
these are the--no-mpi
(MPI
=0) and--debug-flags
(DEBUG
=1).I also fixed the Fortran examples by putting a
logzero
constant inutils_module
.