-
Notifications
You must be signed in to change notification settings - Fork 161
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
meson: Don't call find_program objects with python #100
Conversation
On UNIX-like OSes, the OS will read the shebang and use the correct interpreter, and on Windows, Meson will read the shebang and use the correct interpreter. Adding it manually will cause python to try to interpret python
Interesting; I did add the explicit Python call because of MSYS2 build errors. Can you confirm that it still builds with Meson 0.37 on MSYS2? |
I tested this on native Windows and on MSYS, but not on MSYS2 since I don't use it. However this is how we do things in GStreamer too and other people have tested that it works there. Will confirm and report back though! You might also see a PR adding AppVeyor CI support to build with MSVC and MinGW. :) |
So it doesn't work on MSYS2, because there Python 3.5 is called The fix is to use |
I will note that this same problem also occurs on Linux distros since no one ships Python 3 as |
Ideally, no: Epoxy should build with Python 3. The only reason why Python 2 may be used is because of older, enterprise-y environments — see issue #43. I guess we need to change #!/usr/bin/env @PYTHON@ and then replacing |
I was hoping there's a way to avoid that, but such is life. ;) |
Okay, so I kind of changed my mind, given that Epoxy has to build on platforms without Python 3, which means we're going to keep I'll merge this PR, and then update the documentation to say that we require Python 2 for building Epoxy. |
On UNIX-like OSes, the OS will read the shebang and use the correct interpreter, and on Windows, Meson will read the shebang and use the correct interpreter.
Adding it manually will cause python to try to interpret python.exe
With this change, libepoxy builds and the tests pass with MSVC on Windows for me.