-
Hi, I am loving the new feature of editable installs on v0.13. I have a question regarding submodules. I am using Meson-Python itself to build my entire Python package, which has Cython and Python code and prolly soon a little bit of C++. I am currently trying to vendor a fork of a popular package (scikit-learn) within my codebase. The current strategy I have is to create a maintained fork of scikit-learn and release it on pypi under an alias (e.g. scikit-learn-tree). However, this is not an ideal strategy as this prevents 3rd party packages that depend on scikit-learn from depending on my package. As a work-around it has been suggested that I vendor the forked repo as a submodule within my package instead. However, this now raises a few questions as to how to build and develop on the package:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
You probably need to bite the bullet and port that submodule to meson too. Question: why do you need to vendor at all, though? Vendoring just means you:
|
Beta Was this translation helpful? Give feedback.
-
I don't understand why you need a fork of scikit-learn. Isn't scikit-learn maintained? I see a release on March 9th, thus I would call it maintained. What is the reason why you need to fork or vendor scikit-learn? |
Beta Was this translation helpful? Give feedback.
-
We want a fork because we make changes to a specific submodule inside scikit-learn that isn't in
This is an interesting strategy... I guess the issue is that rn scikit-learn unfortunately hasn't swapped to meson build yet, so would prefer not doing the first soln :p |
Beta Was this translation helpful? Give feedback.
Releasing a fork like that seems reasonable.
I'm hopeful that they will, once they're sure everything is stable for other packages. There are nice benefits after all:)