Skip to content

Switch to scikit build core#127

Open
hokiedsp wants to merge 7 commits into
YannickJadoul:masterfrom
hokiedsp:switch-to-scikit_build_core
Open

Switch to scikit build core#127
hokiedsp wants to merge 7 commits into
YannickJadoul:masterfrom
hokiedsp:switch-to-scikit_build_core

Conversation

@hokiedsp

Copy link
Copy Markdown
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
Copy Markdown
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

@hokiedsp hokiedsp force-pushed the switch-to-scikit_build_core branch 8 times, most recently from 0aa5126 to b5e6a2c Compare July 19, 2024 19:05
@hokiedsp hokiedsp force-pushed the switch-to-scikit_build_core branch from b5e6a2c to c3cfc3e Compare August 11, 2024 00:16
@hokiedsp hokiedsp force-pushed the switch-to-scikit_build_core branch from ef0654d to 2f30bfd Compare October 4, 2024 00:43
@hokiedsp hokiedsp force-pushed the switch-to-scikit_build_core branch from 2f30bfd to a35f462 Compare May 27, 2025 00:49
@hokiedsp hokiedsp force-pushed the switch-to-scikit_build_core branch from a35f462 to ed3e077 Compare March 9, 2026 13:31
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