commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 19/20: python3: use site instead of distuti


From: git
Subject: [Commit-gnuradio] [gnuradio] 19/20: python3: use site instead of distutils
Date: Sun, 25 Dec 2016 04:00:00 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch python3
in repository gnuradio.

commit aad9f3beed7fd1823819a0134635a04872c4553b
Author: Douglas Anderson <address@hidden>
Date:   Fri Dec 23 14:34:24 2016 -0700

    python3: use site instead of distutils
---
 cmake/Modules/GrPython.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake
index cdd87de..87185f2 100644
--- a/cmake/Modules/GrPython.cmake
+++ b/cmake/Modules/GrPython.cmake
@@ -106,8 +106,8 @@ endmacro(GR_PYTHON_CHECK_MODULE)
 ########################################################################
 if(NOT DEFINED GR_PYTHON_DIR)
 execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "
-from distutils import sysconfig
-print(sysconfig.get_python_lib(plat_specific=True, prefix=''))
+import site
+print(site.getsitepackages()[0])
 " OUTPUT_VARIABLE GR_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
 )
 endif()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]