-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix/add option: do not compile fim c-extension #494
Fix/add option: do not compile fim c-extension #494
Conversation
I can confirm that the behavior is improved.
|
However, when using the `--install-option='--nofim', build is not attempted.
|
It works for the develop option ( Trying to use the
|
So, unless the |
…an be individually turned off
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-08-09 12:51:10 UTC |
…mentation page notes.
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 can confirm these new install options work for me, and also I find the new naming scheme for the options very good and future-proof.
The problem highlighted by @kohlerca still persists: Development mode install fails without any options specified if the c++ file does not compile well. This happened to me with various versions of setuptools, but with different errors. This tells me it's a problem on the setuptools side. For regular installs, the module is skipped if there are errors -- this is probably the most important point. Thus, I think merging this is fine as is. |
This PR adds an extra to elephant, which allows installation of Elephant without compiling the c++ extension
fim.cpp
used in SPADE.Do not compile any extension:
pip install -e . --install-option='--no-compile'
pip install elephant --install-option='--no-compile'
Do not compile spade extension:
pip install -e . --install-option='--no-compile-spade'
pip install elephant --install-option='--no-compile-spade'
This option allows to have a workaround in cases were there is no suitable c-compiler available on the target system.
Additionally extensions are now optional, according to setuptools documentation:
See elephant documentation:
https://elephant--494.org.readthedocs.build/en/494/install.html