-
-
Notifications
You must be signed in to change notification settings - Fork 30
Migrate from setuptools to meson-python build backend #182
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
base: master
Are you sure you want to change the base?
Migrate from setuptools to meson-python build backend #182
Conversation
Co-authored-by: tobiasdiez <[email protected]>
Co-authored-by: tobiasdiez <[email protected]>
Co-authored-by: tobiasdiez <[email protected]>
8901850
to
3815f81
Compare
There are still failing CI runs, but those were also failing for other PRs. So this should be good to go. |
cc a few people that might be interested in this: @dimpase @antonio-rojas @tornaria @orlitzky |
meson.build
Outdated
['c', 'cython'], | ||
version: files('VERSION'), | ||
license: 'GPL v3', | ||
default_options: ['c_std=c17', 'cpp_std=c++17', 'python.install_env=auto'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is c++ used anywhere?
meson.build
Outdated
project('cypari2', | ||
['c', 'cython'], | ||
version: files('VERSION'), | ||
license: 'GPL v3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license doesn't match pyproject.toml
cypari2/meson.build
Outdated
sources: pyx, | ||
subdir: 'cypari2', | ||
install: true, | ||
#include_directories: [inc_dirs, 'cypari2'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left-over comment?
Thanks @orlitzky, you were right in all points! Should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you say a bit in the docs about pari as the dependency. It's a bit fragile as there is no version check, and it's unclear what to do if libpari is in a nonstandard location.
It would be interesting to figure out how to build wheels which don't pack libpari in (do the current binary wheels get libpari packed in?)
@@ -139,10 +135,22 @@ same computations be done via | |||
The complete documentation of cypari2 is available at http://cypari2.readthedocs.io and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http -> https, please (also below)
Do you know what versions are acceptable? I have no idea ;-)
Will do. Pari really needs a pkg-config file ;-) |
This PR migrates cypari2 from the legacy setuptools build system to the modern meson-python backend. Hopefully, this fixes already some build issues on some platforms. It should also pave the way for a windows version.
Initial version was created by Github's copilot.