-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
support system wide / user installation #189
Comments
also:
|
This settings is required because the wp3 not should be installed using --user mode because when do this the wp3 will be create a folder on {user}/.config but wp3 require run as super user this change the config to {root}/.config this is a problem for me. make a debian package need to be create a folder on /usr/share/wifipumpkin3 with all files for settings of wp3. as you can see on installation page of wp3 i recommended to install as super user because because wp require super user for run. I can't revert it this is solve make problem with installation of new plugins and solve problem to create a debian package. |
my recommendation for you is create a fork of wp3 and do your settings for your system because i only support the debian, i'm only test on debian. |
you are doing it wrong even for debian. NO tools should write anything into system folders such as /usr/share, read up on FHS. What is the problem with using root/.config? |
I guess for configs and plugins you can use a standard setuptools mechanism: |
just to be clear, user_config_dir should stay as it was before, all output and user's data should be written there. |
okay, I 'm find a possible solution your problem is install on |
I pushed non |
fixed: support system wide / user installation #189
ok, I'm testing 1.1.3 R2, and hit an unrelated bug:
update: |
#189 (comment) |
it created .config/wifipumpkin3/ directory, but did not copy configs. |
ok, thanks for merging my pulls, seems working fine now. |
no problem check if work fine now I 'll make a release after that |
yeap, seems fixed. Thanks |
great work brow, thanks for support |
fixed: check if copy_tree was sucessful fixed: setuptools warnings detected unnecessary files
Basically, revert b082f0d. That commit broke it.
This is a common problem that many tools which we want to distribute do not support system wide installation. Some of these tools provide their own "install.sh" or "setup.sh" with a distro specific commands (sudo apt-install) to install dependencies instead of a proper setup.py/pyproject.toml (PEP 517).
With a proper setup.py script, an end user can install it using the following single command:
python3 setup.py install --user. It also a distro friendly and makes life for maintainers easier.
The end result, a FHS compliant directory structure should be created.
In case if software produce any output, a local user directory should be used, such as
~./<software>/
There are some custom cases (installing non-python packages, data files etc) which have been resolved in other packages. Bellow, are reference points on such bug reports with solutions (patches)
pentoo/pentoo-overlay#596
The text was updated successfully, but these errors were encountered: