-
Notifications
You must be signed in to change notification settings - Fork 20
Create wheels including compiled Fortran code with Github Actions #33
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
base: master
Are you sure you want to change the base?
Conversation
|
Unfortunately I do not know how to make any progress here. |
|
Have you seen this: https://github.com/pypa/cibuildwheel |
|
Yes, I have seen this. It's already used via this action: |
|
On Windows I have seen this error: Do you know how to fix it? |
|
On MacOS, the problem is that no fortan compiler can be found although it appears to be installed: |
|
Thanks for all your effort. I'll look into #33 (comment) soon. |
|
It seems that under Windows you must have setuptools installed: https://pypi.org/project/setuptools/ |
|
I squeezed all the trial and error into one commit and rebased this branch. On MacOs I simply got it working by creating a symlink for gfortran pointing to a specific gfortran version. In Windows for the default setup, everything compiles fine, but something is not working with the linking, because when trying to import the module, the following error occurs: When appending the command line flags compiling fails with the error mentioned above: Here is the software installed in the used Windows image: |
Yes, I think when using setup.py installation procedure, setuptools is needed for all platforms. |
|
One step forward? Using Edit: I think we need to focus on the missing-def-error, because it occurs after the compiler-version-error. |
|
Under Windows, there's two main ways to compile. One uses MinGW, the other uses the MS Visual C++. In my experience with compiling this under Windows, this error:
typically arises when the compiled DLL (1) is not compatible (e.g., compiled for a different Python version), (2) it misses an external dependency. My guess is it's (2) which can be solved with static compile, see here. So you would have to add |
7231c5e to
69de6c6
Compare
WIP: Do not merge
I created a Github action to try to solve issue #32. Unfortunately it is not working yet for Windows and MacOS.