Operating system package...

I have a service and companion utilities that runs on both debian and ubuntu (to start...) This is linux-specific, requiring root permissions of the server service since I am making adjustments to file permissions for the purposes of an extensible archiving system for end-users (the server validates any requests made over a unix file socket based on a peer's uid and gid, and manages files for archival for the user -yes, turns out you can get that info from a file socket on linux; you can't with a network socket...) I made a python3 script for the server service and a python3 install script that sets up everything right for the server service. Because it is doing some pretty privileged service setup, root permissions are needed for the installation script. Right now the programs check the effective uid of the operator, and if it's not root it exits with a message that root is required (so it could be done with sudo or su...) Here's an important point: I need to install a few linux packages (my python install script does that by shelling to apt-get...); I get the appropriate package names for the distro in question (my install script consults a file that comes with it...) Right now if the distro is not debian or ubuntu, it tells the person installing that the distro is unsupported and exits. I tried doing a search on this, but I am getting a hell of a lot of noise in the results. My question is: can pypy be used to distribute a linux-oriented installer for specific distros such as I describe here? Can you point me at the documentation to do that, or a good example pypy package that does something like this?? [Because it is closely coupled to linux API calls and has to be root, I do not have it use venv...] I am now also working on distro-specific install packages; but it would be nice to open access to any and all pypy users...
participants (1)
-
steve.b@osfda.org