Skip to content
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

Respect DESTDIR in Makefiles #13

Open
mmokrejs opened this issue Jul 30, 2017 · 1 comment
Open

Respect DESTDIR in Makefiles #13

mmokrejs opened this issue Jul 30, 2017 · 1 comment

Comments

@mmokrejs
Copy link

Hi,
somewhere you should preprend DESTDIR variable in front of $PREFIX so that installs into a temporary place would work as usual. Most pythonic packages with setup.py work that way. I will attach a log file showing that the install process tried to install the files right to my /usr/share/man/man1/ instead of "$DESTDIR"/usr/share/man/man1/.
Thank you.

build.log.txt

@mmokrejs
Copy link
Author

mmokrejs commented Apr 1, 2018

This works around it for me but uses Gentoo-specific variable.

sed -e "s#sys.prefix#os.getenv('ED')+'/usr/'#" -i setup.py

There must be some generally existing variable used by other pythonic packages, something like DESTDIR respected by make?

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

No branches or pull requests

1 participant