You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This question was also asked on setuptools dicussion forum.
I know nothing then setuptools and now try to look around for alternatives that maybe able to solve my "problem".
I have a Distribution Package named bit_demo containing the two Import Packagesbitcli and bitgui.
I think about the distro maintainers (e.g. Debian, Arch) who need to create a deb file of my upstream repo.
There need to be two packages in the distro. When users only want to use the CLI interface without GUI (e.g. on a headless server) they would do apt install bitcli. But when they need it with GUI they would do apt install bitgui (and bitlic comes in as dependency).
Technically bitcli can live alone. But bitgui is useless alone because it use a lot of bitcli code. Because of that I don't think it would be a good idea to create two separate git repositories. I would prefer to keep them together as one repo/distribution package.
The text was updated successfully, but these errors were encountered:
Like Sviatoslav said on the setuptools question, I'd approach this by making two separate packages on PyPI as well. Or install all of the code as one package, but have optional dependencies for the GUI (in this case, you would do something like pip install bit_demo[gui] to install with the GUI dependencies).
The specific thing you're asking about - installing only part of a Python package - is not possible with Flit, and it's not really supported by Python packaging in general. We normally publish wheels on PyPI: installing from a wheel is fast and simple, but you always get the whole thing installed. If you publish only sdists (no wheels), you can get some control over what happens at install time, but you're kind of fighting the tools - e.g. when pip finds an sdist it will build a wheel and cache that for later use. You probably don't want to be going against the tools like that.
This question was also asked on
setuptools
dicussion forum.I know nothing then
setuptools
and now try to look around for alternatives that maybe able to solve my "problem".I have a Distribution Package named
bit_demo
containing the two Import Packagesbitcli
andbitgui
.When I install it via
python3 -m pip install bit_demo
I do have the two import packages in my system.Would it be possible to install
bit_demo
but only withbitcli
?Can I install a distribution package excluding some of its import packages?
For example
Background of my question
I think about the distro maintainers (e.g. Debian, Arch) who need to create a deb file of my upstream repo.
There need to be two packages in the distro. When users only want to use the CLI interface without GUI (e.g. on a headless server) they would do
apt install bitcli
. But when they need it with GUI they would doapt install bitgui
(andbitlic
comes in as dependency).Technically
bitcli
can live alone. Butbitgui
is useless alone because it use a lot ofbitcli
code. Because of that I don't think it would be a good idea to create two separate git repositories. I would prefer to keep them together as one repo/distribution package.The text was updated successfully, but these errors were encountered: