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

disable mac installs for now in setup.py #472

Conversation

Moritz-Alexander-Kern
Copy link
Member

This PR addresses Issue #469 .
Thanks @heplesser for reporting this.

Bug:
Pip-installing Elephant fails with a compiler error under macOS 12.3.

Fix:
Disable mac installs for now in setup.py.

@Moritz-Alexander-Kern Moritz-Alexander-Kern added the bugfix Fix for an indentified bug. label Apr 12, 2022
@pep8speaks
Copy link

pep8speaks commented Apr 12, 2022

Hello @Moritz-Alexander-Kern! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-04-14 14:32:27 UTC

@Moritz-Alexander-Kern Moritz-Alexander-Kern added the build Travis, libraries, package versioning label Apr 12, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern linked an issue Apr 12, 2022 that may be closed by this pull request
Copy link
Member

@mdenker mdenker left a comment

Choose a reason for hiding this comment

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

Better than removing for mac builds, I suggest to only add the fim module for Windows and Linux platforms.

Also, in the if-then-else clause on line 43, I suggest to specifically list elif platform.system()=="Linux":

setup.py Outdated
"version": version,
"packages": ['elephant', 'elephant.test'],
"include_package_data": True,
"ext_modules": [fim_module],
Copy link
Member

Choose a reason for hiding this comment

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

Remove here...

setup.py Outdated
)
}
# do not compile external modules on darwin
if platform.system() == "Darwin":
Copy link
Member

Choose a reason for hiding this comment

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

...and add the extension module here for Windows and Linux platforms.

@mdenker mdenker added this to the v0.11.1 milestone Apr 14, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern added build Travis, libraries, package versioning and removed build Travis, libraries, package versioning labels Apr 14, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern added the bug Indicates an unexpected problem or unintended behavior label Apr 14, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern merged commit ee5c190 into NeuralEnsemble:master Apr 14, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern deleted the fix/remove_compilation_on_macOS branch April 26, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior bugfix Fix for an indentified bug. build Travis, libraries, package versioning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip install fails on macOS 12.3
3 participants