Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Installation does not honor --prefix when installing data #129

Open
teythoon opened this issue Jul 10, 2018 · 3 comments
Open

Installation does not honor --prefix when installing data #129

teythoon opened this issue Jul 10, 2018 · 3 comments
Labels

Comments

@teythoon
Copy link
Contributor

% python3 setup.py install --prefix=/tmp/gpgsync
[...]
running install_data
copying share/gpgsync.desktop -> /usr/share/applications
error: could not create '/usr/share/applications/gpgsync.desktop': Permission denied

Afaics this is because of the use of sys.prefix, but I don't know how to get the installation prefix from setuptools.

@teythoon
Copy link
Contributor Author

Furthermore, Common.get_resource_path uses sys.prefix.

@micahflee micahflee added the bug label Sep 19, 2018
@micahflee
Copy link
Contributor

Hmm, this is a good point. How is the installed application supposed to know the correct prefix then, in Common.get_resource_path, I wonder? Do you know how other software deals with this?

@clawoflight
Copy link

@teythoon have you tried using setup.py install --root instead?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants