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

libmambapy: Switch build backend to scikit-build-core #3802

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

LecrisUT
Copy link

@LecrisUT LecrisUT commented Feb 5, 2025

  • Used setuptools-scm because it is simpler to configure for now. I don't think the reading version from python file is supported in scikit-build-core yet
  • Had to move the src/libmambapy/bindings to bindings because it interferes with pip install -e. It is cleaner to have the compilation source outside of the pure python files.

Other than that it should be effectively identical.

I did not review the build system, but at least there is an immediate issue that needs to be resolved

include("../cmake/CompilerWarnings.cmake")

This breaks all sdist builds because the archive starts from libmambapy folder. In practice, this is a purely developer option and there are neater ways to create one using targets instead. But if you really wish to keep it in that form, a solution is to make a symlink of the cmake folder.

Closes #3798

@@ -41,7 +41,8 @@ dependencies:
- cryptography
- securesystemslib
# libmambapy build dependencies
- scikit-build
- scikit-build-core
- setuptools-scm
- pybind11-stubgen <1.0
Copy link
Author

@LecrisUT LecrisUT Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does conda still not have any integration with python build systems (PEP517)? Manually referencing them like this is very error-prone, particularly since some build dependencies are dynamically generated, setuptools-scm in this case.

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

Successfully merging this pull request may close these issues.

Migration to scikit-build-core
1 participant