-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fixed all warnings with recent Pythons and when compiling with C++17 #6
Conversation
…nstead of a wide string
…nstead of a wide string
Hey @pbosetti thanks for PR, I've been long striving for a free time to fix Windows platform build issues and autotests Can you help me fix github pipeline for windows https://github.com/reefactor/cppy3/actions/runs/10662698254 That's because numpy package missing in github workflow matrix file https://github.com/reefactor/cppy3/blob/master/.github/workflows/cmake-multi-platform.yml#L72 Can you give a hint or a code commit on how to setup a numpy visibility for CMake on Windows ?
|
Hi, thanks for answering... I supposed the project was dead or so, and I went on adapting it to my own needs. In the last commits I probably have changed it too much for your liking... Anyway, after a day of fighting Windows pesky specifics, I finally have it working (gosh, If I hate that platform...) Now I have it working after installing official Python 3.12, selecting "install for all users of this PC". Then I just did a |
Oh, I was forgetting: I have by default disabled the compilation of tests: if you want to enable tests (as in the workflow), you need to Reason of this choice: I suppose most of the times this project is going to be used as library, included with |
Hi, in the last group of commits I have tried to fix all warnings and Windows issues, at least when compiling with MSVC19 with C++17 standard. |
How do you set I need to add this into workflow file to fix CI for Windows platform https://github.com/reefactor/cppy3/actions/runs/10669260589/job/29635962034?pr=6 |
Damn, that's tough. If I run |
@reefactor I have invited you on a test repo that only has the bare basics for GH CI. Look at the pipeline: the step |
@pbosetti many thanks for your contribution, I appreciate the code - it is cleaner and its C++17 now. Thats a major step for this small package. And we've managed to fix Windows platform build. It remains to be diagnosed and fixed Windows autotests: Debug build python linking issue and Release build segfault. Release tests crashing on Windows is a mystery for now and requires debugging. https://github.com/reefactor/cppy3/actions/runs/10724591615/job/29740578852?pr=6 Seems like it requires more time and effort and should be delayed for now. |
@pbosetti regarding your remark on despising python - since you're familiar with Ruby - you should get familiar with Python more. All the machine learning engineering & research math community folks using it and pretty happy. |
Good!
<rant mode="on"> |
Fixed deprecation warnings on modern pythons.
Also, fixed deprecation warning when compiling with C++17