Skip to content
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

Using Meson Build System #45

Closed
naveen521kk opened this issue Mar 27, 2021 · 9 comments
Closed

Using Meson Build System #45

naveen521kk opened this issue Mar 27, 2021 · 9 comments

Comments

@naveen521kk
Copy link
Member

Currently we are setuptools like any other python project, which is fine, but I am strangely attracted to Meson, as a build system.
Meson is fast, other than that only feature I see, which is so hard to do with setuptools is that we can create C programs to for the testsuites. What I mean is we can write C programs to generate SVG files and compare it with what we generate. That should surely work because we are generating things in the same environment and testing the same.

While doing this would mean maintaining two different build system, one setuptools and other Meson, but I think Meson setup scripts are so easy to maintain than what we do at setuptools, also meson has subprojects, which in a way helps the users to build pango while installing manimpango, say they are on old linux, this may help.

Thoughts about it @PhilippImhof ?

@PhilippImhof
Copy link
Member

PhilippImhof commented Mar 27, 2021

I have absolutely no opinion on this topic, because I have never used Meson. Having two build systems to maintain seems a bad idea to me, however.

@naveen521kk
Copy link
Member Author

naveen521kk commented Mar 27, 2021

Having two build systems to maintain seems a bad idea to me, however.

Indeed yes, meson is so new to python, so we can't use it to create wheels. But still has its own advantages though. I would only do it when we absolutely need it.

@naveen521kk
Copy link
Member Author

naveen521kk commented May 18, 2021

I think this would help a lot. Let me see if I can build wheels from meson itself. If I can do that this would be the best approach in long run.
This is mainly because builds started to fail today, and I got a feel that this won't happen if we are using meson. Let's see. We may be some the early adoptors of meson as a build system for a python project, but that's fine.

@naveen521kk
Copy link
Member Author

I am planing to implement this in #48.

@naveen521kk naveen521kk added this to the v1.0.0 milestone May 21, 2021
@naveen521kk naveen521kk removed this from the v1.0.0 milestone May 29, 2021
@naveen521kk
Copy link
Member Author

Feels like there are lot of things that are not going to work with this setup, so I think I am not going to do that.

@naveen521kk
Copy link
Member Author

Looks like scipy has moved to Meson now. scipy/scipy#14847

@rgommers
Copy link

rgommers commented Jan 1, 2022

Wheel creation still has sharp edges, but we plan to fix that over the next weeks/months. Unless you're in a hurry I would recommend to wait for a bit till we've tested everything for SciPy.

@naveen521kk
Copy link
Member Author

Wheel creation still has sharp edges, but we plan to fix that over the next weeks/months. Unless you're in a hurry I would recommend to wait for a bit till we've tested everything for SciPy.

Thanks, yeah we would probably wait for SciPy to actually make a release with meson support and wheels built with meson. Also, wish you a happy new year 🎉 .

@rgommers
Copy link

rgommers commented Jan 1, 2022

You too, happy new year!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants