Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Feature Request: Allow running tool on MacOS and other Linux distributions #7

Open
serid opened this issue Oct 31, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@serid
Copy link

serid commented Oct 31, 2021

Describe Your feature request:
Cache querying system is currently non-portable.

if not system() == "Windows":
import apt
cache = apt.Cache()

This block of code works on Windows and Debian/Ubuntu, but fails on any other OS, for example MacOS and Arch Linux.
Here is a docker file reproducing the error "ModuleNotFoundError: No module named 'apt'":

https://pastebin.com/E4X7F1x4

Make sure to run the image several times since sometimes the tool flukes and does not report error.

Why should I add that?:

This would allow running the tool on MacOS and linux distributions other than Debian derivatives like Ubuntu.

@serid serid added the enhancement New feature or request label Oct 31, 2021
@kubinka0505
Copy link
Owner

I admit that this will be very hard to fix, since there is no - as far as I know - built-in cross-platform package for Python that provides support for system installed packages.

@kubinka0505 kubinka0505 added the help wanted Extra attention is needed label Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants