-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
msys2 (mingw) support #845
Conversation
* Adding a check for testing for msys2 * disabling inet_ntop.c on msys2 as it's provided by mingw
Fixes for building the lib in an msys environment with mingw32 mingw64 should work as well.
This is cool.
|
Ok I'll check the flake8 errors on setup.py and possibly others, then I will update the docs. I tested on python 2.7.11 for mingw32 provided by msys. I have access to a 64b Windows machine, I'll setup mingw64 on it and give it a try. |
Tested with MSYS2 native MinGW-w64 32 bit and 64 bit, python 2.7.11 and 3.5.0 and it is working fine. Testing procedure:
III. In MINGW shell
EDIT: Forgot to mention it will create packages for both architectures and both Python versions |
Some tests are failing to success when I execute make test. So the pull request is not ready for merging. Anyhow I packed and built this for mingw, it's available on my repository at https://github.com/manuelnaranjo/mnaranjo-mingw-repository I think we should close the PR |
@manuelnaranjo Fixes for packages should go to the upstream if possible so everyone could benefit from it. |
@mati865 Yes I'm aware of all that, I'll create a PR to mingw later today. Before getting the changes back into upstream I think we need to make sure the tests passes. memory-leaks and some network interface related ones are failing. |
Any update about this? |
@giampaolo no sorry, I don't have time to work on that. I have created a mingw32 repository, and I'm maintaining it. We can tell people to use it, I don't think there's need to merge this changes back into upstream. We can close the bug report if you feel that's right. |
I see little sense in redirecting users to another repo for something this specific, which is also almost done AFAIU. If you don't have time that's fine of course. I'll keep this PR open and will try to take a look at it when I find some time. |
Actually there's a reason for that, pip install doesn't work out of the box
|
what do you mean exactly? |
If the package is pure python then I created a PR with the mingw package maintainers, so users would be able to do: |
Given that currently I distribute exes/wheels by compiling them with Visual Studio this should not represent a problem even if this is merged though, correct? |
As far as I understand, mingw support would be good for people who want to compile psutil from sources. |
Yes that's right, you would be fine merging. And would make mingw team life easier, if you ever merge this and make a new release let me know and I update mingw package. And yes having the source build on mignw would make people willing to build from source life easier. Otherwise they would need to learn how to repackage for mingw which is pretty damn simple, pacman is way simpler than dpkg. |
OK, this brings us back to my original question: is this ready to be merged? Is there something missing? =) |
Not AFAIK, it's ready to merge, but now this build failed [1] and I'm clue less. That function is defined by ws2_32 according to [2] [1] https://tea-ci.org/Alexpux/MINGW-packages/1373/2 |
The patch is missing an include, and gcc is complaining that the function is been implicit defined, I'll fix that tomorrow and update both PR |
Tea-Ci is based on Wine Staging and sometimes it's unstable or missing some Windows functionality. |
Any news update this? The PR is now old and no longer applies cleanly. This is still something I would welcome. |
Nope sorry I had been using it, but haven't had time to look into this
El mar., 25 de abr. de 2017 18:21, giampaolo <notifications@github.com>
escribió:
… Any news update this? The PR is now old and no longer applies cleanly.
This is still something I would welcome.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#845 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAhUWwhI3MUP1iSJ2cAdnLVX8wsGIZJ2ks5rzmPsgaJpZM4I9QJn>
.
|
Looking back at this old PR, and on a second thought: despite being able to compile psutil with it would be advantageous for the user, I'm gonna reject this proposal as the extra burden needed in order to maintain MinGW32 support is not worth it from a maintenance standpoint (e.g. the extra Appveyor CI/build). FWIW, cPython also only support VS, I believe for similar reasons. |
Guys,
I fixed the tool to build and run in msys2[1].
If needed I can provide with the full list of packages I have installed as msys2 provides pacman :D.
-Manuel
[1] http://msys2.github.io