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

Switch to scikit build core #127

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hokiedsp
Copy link
Contributor

As I was playing with CMake build process, I found that scikit-build folks have their own python build backend.

I tried to switch to it and I think I'm successful at it, I think. It must be done with project.toml so I switched the meta data over to it from the cfg file.

One thing I haven't achieved is to support the dynamic version data with their method. I poked around their website for a bit and came away not sure what to do (as I forgot 99% of how CMake works...) Here is the info, as limited as it may be:

https://scikit-build-core.readthedocs.io/en/latest/faqs.html#dynamic-setup-py-options

For now, I've relegated to setuptools by using the alternate build-backend scikit_build_core.setuptools.build_meta, which if I understand correctly takes the info from the good ol' setup.py.

Donno if you are interested in updating this part of the project, but if you are, you can use this as a spring board.

@hokiedsp hokiedsp force-pushed the switch-to-scikit_build_core branch from d4f58fc to 2ff5c52 Compare July 18, 2024 23:20
@hokiedsp
Copy link
Contributor Author

OK, I figured out scikit-build-core I think, and it supports the editable install (if you can remember the command line lol).

Here is the pip command as given by their docs:

pip install --no-build-isolation --config-settings=editable.rebuild=true -Cbuild-dir=build -ve.

This creates the build directory and can see the build progress (guess -ve option for this). And it completes with

Successfully built praat-parselmouth
Installing collected packages: praat-parselmouth
Successfully installed praat-parselmouth-0.5.0.dev0

Once this is done, you can go about doing things CMake way to rebuild:

cmake --build build

Finally, you can uninstall the editable install:

pip uninstall praat-parselmouth

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.

2 participants