From 333c535230acd222f8271736aaa4026abd8f007a Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Mon, 16 Jan 2012 14:15:50 +0100 Subject: [PATCH] euscan: fix man page installation ref: https://bugs.gentoo.org/show_bug.cgi?id=398873 Signed-off-by: Corentin Chary --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f64c54d..1eb6ba4 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ cwd = os.getcwd() try: from portage.const import EPREFIX except ImportError: - EPREFIX='/' + EPREFIX='' # Python files that need `__version__ = ""` subbed, relative to this dir: python_scripts = [os.path.join(cwd, path) for path in ( @@ -78,7 +78,7 @@ core.setup( package_data = {}, scripts=python_scripts, data_files=( - (os.path.join(EPREFIX, 'usr/share/man/man1'), glob('man/*')), + (os.path.join(os.sep, EPREFIX.lstrip(os.sep), 'usr/share/man/man1'), glob('man/*')), ), cmdclass={ 'set_version': set_version,