euscan: fix man page installation
ref: https://bugs.gentoo.org/show_bug.cgi?id=398873 Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
72e43ac4fe
commit
333c535230
4
setup.py
4
setup.py
@ -21,7 +21,7 @@ cwd = os.getcwd()
|
|||||||
try:
|
try:
|
||||||
from portage.const import EPREFIX
|
from portage.const import EPREFIX
|
||||||
except ImportError:
|
except ImportError:
|
||||||
EPREFIX='/'
|
EPREFIX=''
|
||||||
|
|
||||||
# Python files that need `__version__ = ""` subbed, relative to this dir:
|
# Python files that need `__version__ = ""` subbed, relative to this dir:
|
||||||
python_scripts = [os.path.join(cwd, path) for path in (
|
python_scripts = [os.path.join(cwd, path) for path in (
|
||||||
@ -78,7 +78,7 @@ core.setup(
|
|||||||
package_data = {},
|
package_data = {},
|
||||||
scripts=python_scripts,
|
scripts=python_scripts,
|
||||||
data_files=(
|
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={
|
cmdclass={
|
||||||
'set_version': set_version,
|
'set_version': set_version,
|
||||||
|
Loading…
Reference in New Issue
Block a user