From f0b6b9a86e7882c18582efe4520a1ac0119a3dfd Mon Sep 17 00:00:00 2001 From: Elvis Dowson Date: Mon, 28 Dec 2020 23:32:18 +0400 Subject: [PATCH] cmake/python.cmake: Remove SETUPTOOLS_ARG_EXTRA for debian systems. Remove SETUPTOOLS_ARG_EXTRA since "--install-layout=deb" is not supported on Ubuntu-18.04. Using this argument causes `make install` to fail. Signed-off-by: Elvis Dowson --- cmake/python.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/python.cmake b/cmake/python.cmake index c72b85999..e59e6f6c3 100644 --- a/cmake/python.cmake +++ b/cmake/python.cmake @@ -16,7 +16,7 @@ option(SETUPTOOLS_DEB_LAYOUT "Enable debian style python package layout" ${enabl if(SETUPTOOLS_DEB_LAYOUT) message(STATUS "Using Debian Python package layout") set(PYTHON_PACKAGES_DIR dist-packages) - set(SETUPTOOLS_ARG_EXTRA "--install-layout=deb") + set(SETUPTOOLS_ARG_EXTRA "") # use major version only when installing 3.x with debian layout if("${PYTHON_VERSION_MAJOR}" STREQUAL "3") set(_PYTHON_PATH_VERSION_SUFFIX "${PYTHON_VERSION_MAJOR}")