Closed alexandrakoch closed 3 years ago
Hi @alexandrakoch AFAIK, https://github.com/williballenthin/python-registry is completely Python-native, and not related to win32 in any way (it does not depend on any library, win32 or not). It was written with not relying on anything windows-specific in mind (it is actually used for win registry forensics @ Linux).
Its only dependency is unicodecsv
(enum-compat
is just a virtual package, see https://github.com/williballenthin/python-registry/blob/master/setup.py#L18)
Which particular issue are you running into when packaging it?
Since it's almost exclusively used for Windows platforms it's not packaged for any Linux platform I can find, unlike a lot of common python libraries. And while I could make a package for python-registry as well, it feels unnecessary to add a dependency for a library which (from what I can tell) is unnecessary on the platform you're packaging for, as well as creating another package that needs to be maintained.
Ahhh, feelings. So you feel that python-registry is "unnecessary"? I feel that python-registry is totally useful on Linux, it's clean and is of minimal overhead. Hell, I wouldn't be adding it to the project otherwise. Regardless, I don't have strong opinion about your packaging issue, as it seems to be more of a philosophical than a technical one. As I am not going to completely remove python-registry because of this, it is totally up to you; if you feel that python-registry should be a conditional import, feel free to submit a PR or patch, I'll be happy to merge it, I'm quite busy these days do the change myself.
@alexandrakoch any news?
@alexandrakoch looks like you added the python-registry but there is still something up with the enum-compat package? https://www.reddit.com/r/linux_gaming/comments/hocg55/anyone_know_how_to_undervolt_amd_gpus/fxgzaq4?utm_medium=android_app&utm_source=share
I guess I could set python-registry as an optional dependency and add some code that warns the user to add it if she really needs the thing...
As the title says, running the software will immediately crash without python-registry, even on platforms which will have no use for this library. This makes it impossible to package properly for platforms which obviously will not have easy access to a library exclusively used for win32, which I discovered while attempting to make a PKGBUILD for the Arch Linux AUR.
Reproduction is simple, after uninstalling/not installing python-registry, running upp will immediately result in the following error: