python: final fix for arch packaging #357

This commit is contained in:
nick black 2020-02-20 01:50:13 -05:00
parent adfbedf3ef
commit 8e2e1d26b8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -700,8 +700,8 @@ if(${USE_PYTHON})
# here for a deb build.
if(NOT "${DFSG_BUILD}")
# --root both implies, and is required by, --single-external-package-managed
# Arch makepkg sets it. if unset, use /
set(PYROOT $ENV{DESTDIR})
# Arch makepkg exports PYROOT as /usr. if unset, use /.
set(PYROOT $ENV{PYROOT})
if(NOT PYROOT)
set(PYROOT "/")
endif()