-
Notifications
You must be signed in to change notification settings - Fork 109
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
Windows wheel for Python 3.9 #319
Comments
It looks like it failed because Python 3.9 wasn't available in the Appveyor environment at the time: https://ci.appveyor.com/project/MarkWieczorek/build-shtools/builds/40518221/job/vwuhkxhuqw2rkhle |
Is it available now? |
Yes, according to this: https://www.appveyor.com/docs/windows-images-software/#python |
I just tried rebuilding the 3.9 version, but it failed. If you have any ideas on what the problem is, let me know! |
I have no experience with AppVeyor, but from sleuthing, it looks like you have to manually specify the "Visual Studio 2019" image: I assume it currently defaults to one of the older images. |
Yes, if https://www.appveyor.com/docs/build-environment/#choosing-image-for-your-builds |
Adding
Breaks all the appveyor builds: https://ci.appveyor.com/project/MarkWieczorek/build-shtools I think that I put this is in the right place. If you don't have any ideas on what is happening, I'll just revert this change. |
So it's failing here because this path doesn't exist in that image:
It doesn't seem like this is used for anything in the script other than displaying information, so it could probably be removed. But then there may be other things later on that also have different paths... Looking at the upstream version, they use the Visual Studio 2017 image, which doesn't include Python 3.9, but it appears they install Python 3.9 using multibuild. |
I remove the https://ci.appveyor.com/project/MarkWieczorek/build-shtools/build/job/uausw0qoyfd2cyqg |
Okay, so it can't find |
According to AppVeyor's software page, MinGW 8.1 is not in the Visual Studio 2019 image, yet apparently version 8.1.0 is present since the other DLLs were successfully copied. I tried installing MinGW 6.3.0 and 8.1.0 in a VM and found that while |
Just let me know if you want me to make any specific changes (I don't have the time to debug this, and don't understand windows....). |
I also am not that familiar with doing all this on Windows. I'll try out some things and get back to you -- I suspect that |
I fiddled around with things and can report back: no, I see a couple of possible options:
I think the second option may be a little cleaner, and it should make it easier to support Python 3.10 that way, since none of the current AppVeyor images include it yet. (Although other dependencies, such as scipy, don't have wheels for Python 3.10 up on PyPI yet, so it won't work until later...) |
If I submit a pull request on https://github.com/SHTOOLS/build-shtools, will AppVeyor run on that branch? |
You can try, I have no idea. If it doesn't, I'll see what I need to do to trigger it. I would really like to get the windows CI to work with github actions, but I don't know enough about windows to do this myself. |
I have no experience with Github Actions, but FYI I see that they do support Windows: |
In the PR I submitted, the wheel for Python 3.9 is successfully generated, although the jobs fail during the PyPI upload. I presume that once it gets merged in, the next build will be fully successful. |
It works! Thanks for looking into this. If you have any other suggestions for the windows builds, feel free to make a new PR! |
I see on PyPi that Windows wheels are available for Python 3.7 and 3.8, but not Python 3.9:
https://pypi.org/project/pyshtools/4.9.1/#files
Would it be possible to build and upload a wheel for Python 3.9?
The text was updated successfully, but these errors were encountered: