diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-06-20 18:23:11 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-06-24 11:36:46 -0400 |
commit | 7d2321542142981f3c8d1e5583b4e27fd35add7f (patch) | |
tree | 26d99e489bfa359466d29b2345d493b0e17f2933 | |
parent | cb6868646dae952a4577a29839d61bb0fe3f31e4 (diff) |
newmod: remove Py2-compat from inline Python script
-rw-r--r-- | gr-utils/modtool/templates/gr-newmod/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/modtool/templates/gr-newmod/CMakeLists.txt b/gr-utils/modtool/templates/gr-newmod/CMakeLists.txt index 177520af0e..37d6fcaa5f 100644 --- a/gr-utils/modtool/templates/gr-newmod/CMakeLists.txt +++ b/gr-utils/modtool/templates/gr-newmod/CMakeLists.txt @@ -121,7 +121,7 @@ find_package(Doxygen) find_package(pybind11 REQUIRED) execute_process( COMMAND "${PYTHON_EXECUTABLE}" -c - "from __future__ import print_function\ntry:\n import numpy\n import os\n inc_path = numpy.get_include()\n if os.path.exists(os.path.join(inc_path, 'numpy', 'arrayobject.h')):\n print(inc_path, end='')\nexcept:\n pass" + "try:\n import numpy\n import os\n inc_path = numpy.get_include()\n if os.path.exists(os.path.join(inc_path, 'numpy', 'arrayobject.h')):\n print(inc_path, end='')\nexcept:\n pass" OUTPUT_VARIABLE PYTHON_NUMPY_INCLUDE_DIR) ######################################################################## |