summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2017-01-07 20:04:19 +0100
committerSebastian Koslowski <koslowski@kit.edu>2017-01-11 14:07:13 +0100
commit2a5403ce818a9dfd72a3965e138c8d9fb035a1ac (patch)
tree141f52de24f9d782c5f395a9aa46131ab67cf2a1
parent9460011e1834c07456ebad9b3549b06a0ad18fa6 (diff)
grc: gtk3: python3 error, some cmake fixes
-rw-r--r--grc/gui/CMakeLists.txt2
-rw-r--r--grc/gui/canvas/CMakeLists.txt25
-rwxr-xr-xgrc/scripts/gnuradio-companion6
3 files changed, 33 insertions, 0 deletions
diff --git a/grc/gui/CMakeLists.txt b/grc/gui/CMakeLists.txt
index 12be4a8151..f4c624288a 100644
--- a/grc/gui/CMakeLists.txt
+++ b/grc/gui/CMakeLists.txt
@@ -23,3 +23,5 @@ GR_PYTHON_INSTALL(
FILES ${py_files}
DESTINATION ${GR_PYTHON_DIR}/gnuradio/grc/gui
)
+
+add_subdirectory(canvas)
diff --git a/grc/gui/canvas/CMakeLists.txt b/grc/gui/canvas/CMakeLists.txt
new file mode 100644
index 0000000000..e24e8c2d56
--- /dev/null
+++ b/grc/gui/canvas/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Copyright 2016 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+
+file(GLOB py_files "*.py")
+
+GR_PYTHON_INSTALL(
+ FILES ${py_files}
+ DESTINATION ${GR_PYTHON_DIR}/gnuradio/grc/core/utils
+)
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion
index c1ffdf28bc..c36837187c 100755
--- a/grc/scripts/gnuradio-companion
+++ b/grc/scripts/gnuradio-companion
@@ -80,6 +80,11 @@ def check_blocks_path():
"Can't find block definitions. Use config.conf or GRC_BLOCKS_PATH.")
+def check_python_version():
+ if sys.version_info.major > 2:
+ die(RuntimeError('No python3 support yet.'), 'Stay tuned...')
+
+
def run_main():
script_path = os.path.dirname(os.path.abspath(__file__))
source_tree_subpath = "/grc/scripts"
@@ -97,5 +102,6 @@ def run_main():
if __name__ == '__main__':
check_gnuradio_import()
check_gtk()
+ check_python_version()
check_blocks_path()
run_main()