-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Bite the bullet: remove distutils and setup.py #6738
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
Bite the bullet: remove distutils and setup.py #6738
Conversation
Too early :) |
Specifically, meson cannot build sdists (the way we like them, with compiled Cython files) the same way setuptools does. It instead takes a snapshot of the repo. |
Could build sdist using:
with
But you'd need to specify the version in that setup call as well. EDIT: |
:) However, if you wish to do so anyway you'll want to:
|
👀 OK, I can go with that recommendation! Still, I'd prefer not to package the whole git repo; there's a lot of CI cruft in there. |
That is a very valid point! There are two general approaches to solving this:
|
Awesome, I'm going to try that; thanks! |
15f04e8
to
407dbcd
Compare
51d31eb
to
17bdf7a
Compare
OK @jarrodmillman, this should be good to go now. Please keep these commits separate, instead of squashing the PR. |
17bdf7a
to
18d2919
Compare
Meson uses git-archive underneath the hood, so what used to the MANIFEST.in now lives in .gitattributes. Also adds a devpy command for this action: `./dev.py sdist`.
0834cc4
to
7e70b61
Compare
@jarrodmillman Scratch that; windows is now fine, but got some fixes on the Linux side still. |
7e70b61
to
e0d0007
Compare
@jarrodmillman I followed the new Cython guidance (see #6738 (comment) above) and no longer add compiled Cython files to the sdist. This probably deserves a release note, what do you think? |
✔️ 😅 |
Let's see how far we get!