Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #433 +/- ##
==========================================
+ Coverage 86.69% 86.70% +0.01%
==========================================
Files 24 24
Lines 3464 3468 +4
==========================================
+ Hits 3003 3007 +4
Misses 461 461 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
FYI, the meson build currently packages all files in the subdirs of There is likely a better way to do this that doesn't include all the extra stuff - perhaps using some sort of file type filter before running |
|
Not sure how to do that exactly, the docs aren't very clear. If we can't figure out a way I don't think it's a deal breaker, think it's also been the case since basically the beginning, so I propose that we merge and deal with it in the future. |
|
FYI, the real issue is dug into an error log dropdown printout: I am not familiar with compilers on Windows, but looking at some discussions like this one (or this one - does the Windows build use Visual Studio in the backend?)we might need to update a compiler option or link to the missing library |
|
I think this is finally ready? CC @marcomangano @eirikurj @whophil @kanekosh |
|
LGTM 🚀 |
|
Maybe it is a problem with my machine, but when I try and editable installation I am getting this error: It works with the non-editable installation and I double-checked that the issue is introduced with this PR. I am not familiar with Meson machinery, but it looks like it is trying to do some kind of build at runtime and it is missing the ninja library used at build-time and stored in a temporary folder? |
|
Ah I was wondering if I needed to include |
|
I am sorry I was unclear, the build works just fine, the error above occurs whenever you try and import |
|
I see, it seems that the behaviour here is a little different from
So, I'm not sure what we want to do. I think the dev experience is slightly degraded but not making |
|
I need to look into the discussion a bit more in detail, but I think a practical solution could be enabling something like Since we only (aside minor exceptions) work with python, it feels weird to recompile (even if it is just through |
|
EDIT: the |
|
Circling back on this, what do we think? Is this ready to be merged? @marcomangano @whophil @kanekosh @eirikurj |
|
This is a bit old, could somebody sync this with main to see if it still builds? |
I think that should work but not 100% sure. In general I caution against editable installs unless you are actually developing stuff in pyOptSparse. I found a quirky issue with editable installs. Because meson will use a separate build dir to store the compiled .so libraries (i.e. out-of-tree build) and rely on some import hook to manage this, our
Thoughts @whophil ?
I am OK with adding a separate group of optional deps. |
0863ca9 to
83b2463
Compare
|
Yay I got the build to pass! Final check @marcomangano could you test it locally? I think the developer experience is slightly degraded overall but IMO it's close enough and we can iterate as needed in the future. |
marcomangano
left a comment
There was a problem hiding this comment.
Tested both the standard and in-place installation locally (without SNOPT) and everything is working.
kanekosh
left a comment
There was a problem hiding this comment.
Tested locally with SNOPT and IPOPT and everything worked.
|
I don't have write access anymore, so can someone in the lab also approve and merge? @sabakhshi @sanjan98? |
sanjan98
left a comment
There was a problem hiding this comment.
Approving since this has already been reviewed by Marco and Shugo and all CI tests passed
Purpose
Continuation of #431 but from the mdolab branch to test all optimizers.
Expected time until merged
Type of change
Testing
Checklist
flake8andblackto make sure the Python code adheres to PEP-8 and is consistently formattedfprettifyor C/C++ code withclang-formatas applicable