-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
python,python3: (discussion) how should source package dependencies be handled? #5424
Comments
hey, Python source packages are a bit special, in the sense that they came up because I thought it would be nice to also package the Python source code, since the switch to packaging Python bytecodes by default. I haven't given it much thought over how things should be done/designed. But as it turns out, there does not seem to be much interest in this yet [aside from you]. That means things can still be done in various ways moving forward. I was also wondering if it makes sense to have src packages depend on each other. We could:
I am leaning towards 1. (right now), since 2. can offer potential for a mess. Still, I don't have a strong preference ; if you have one, I'm open to hear it, and maybe we can apply that. |
For me, I don't mind packaging bytecodes (other major distros either package them as well or generate them post-install), but having source code available is important because:
If the choice is between having no dependencies at all or having them disabled by default, I don't have a strong preference for either one; for my own uses I wouldn't go through the trouble of enabling dependencies. In terms of the above two reasons, I don't see the benefit of being forced to install the source code of all dependencies when I only want to debug or tinker with one specific module. Removing dependencies sounds like less work so I would go for that (at least for now). |
Ok. |
Thanks 😄 closing for now. |
Related to: openwrt#5424 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Related to: openwrt#5424 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Related to: openwrt#5424 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Maintainer: @commodo
Description:
(Not sure how many people to pull into this thread, @commodo feel free to mention others as necessary.)
Currently, only the main Python packages have source versions, where the source package depends on the source packages of its binary dependencies, i.e. if
python-A
depends onlibB
andpython-C
, thenpython-A-src
depends onpython-C-src
.I want to add more source packages, but I'm not sure if this way of structuring dependencies make sense. I can think of two ways to think about this (I'm sure there are more I haven't considered).
Under the current dependency pattern, source packages don't pull in any non-Python dependencies, so they can't be used without the binary package installed as well (unless the user manually installs any dependencies required). If this is the intention, that source packages aren't meant to be functional, then is it really necessary for source packages to have any dependencies?
In the example above, installing
python-A-src
is not enough to use A because it doesn't pull inlibB
, so doespython-A-src
really need to depend onpython-C-src
?If source packages are meant to be functional, then should they also have the same dependencies as their binary counterparts (i.e. should
python-A-src
also depend onlibB
andpython-C
)? Should they depend on their binary package directly (i.e.python-A-src
depends onpython-A
)?I haven't fully investigated this, but are there other functionally necessary files in the binary package that doesn't exist in the source package (e.g. compiled C code, .egg-info directories, etc.)?
The text was updated successfully, but these errors were encountered: