-
Notifications
You must be signed in to change notification settings - Fork 149
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
setup.py tries to install Symengine even if it was not built #325
Comments
Could you elaborate on why you want to set |
I had difficulty building symengine due to some complex cython compilation problem. Since I had no need for symengine, I decided to just not build it! I am only using the |
Ah, so you aren't using any python code at all? Usually we'd recommend installing with cmake and not pip in that case |
I am using python code for codegen. And even without symengine, I run the codegen infrequently enough that waiting a couple seconds is plenty fast for me! Would this problem be different if I were invoking cmake directly instead of through pip? Regardless, I am installing like this because of the readme saying:
|
Yeah invoking cmake directly, you wouldn't run into this
Ah, good point, we do say that. Curious if you have more info about what was going wrong with Cython? We should really get the packaged install to include everything you need to build against it, but it might also make sense to enable building SymForce from source, but pulling an already-built copy of our modified SymEngine from somewhere instead of needing to build that too, since even most people building SymForce from source aren't modifying SymEngine |
The error I'm getting building Symengine with Cython is "Your Cython version is too old. Please upgrade Cython." I ran |
It's pretty likely the issue you're seeing is this: #161 Which is resolved by cleaning your build directory as mentioned there |
Describe the bug
Even when option
SYMFORCE_BUILD_SYMENGINE
is set toOFF
,setup.py
still attempts to install Symengine, which will now fail.To Reproduce
git clone symforce v0.8.0
Set
SYMFORCE_BUILD_SYMENGINE
toOFF
I worked around this by commenting out the install code in setup.py:
Expected behavior
Should not try to install Symengine when
SYMFORCE_BUILD_SYMENGINE
isOFF
.Environment (please complete the following information):
Additional context
cmake version 3.26.3
The text was updated successfully, but these errors were encountered: