-
Notifications
You must be signed in to change notification settings - Fork 1
Description
On Linux, unprivileged users won't be able to install the package unless they have a root permission (sudo, root login, etc) as setup.py tries to install it to the system-wide location and would fail to do that. There should be a workaround for that, such as creating a virtual environment by using python3.8 virtual environment module (venv) and running commands in it or anything similar.
Alternate solution would be to change the prefix to $HOME if script would support it as right now it does not do that as such option is not recognized while trying to do that. Also I use venv method as it works best for me so far.
The virtual enviromnent example is below, also note that anything after # is a comment and is ignored by shell.
$ python3.8 -m venv ENV #create environment named ENV, don't forget to first install venv module for python 3.8 (from python3-venv package on Ubuntu) first if it's not already installed
$ . ENV/bin/activate #activate virtual environment
(ENV) $ python setup.py install
(ENV) $ mapedit <mapedit args, etc>
(ENV) $ deactivate #exit from python virtual environment
This should also be noted in README.md to avoid any further confusion for any non experienced user in any foreseable future.