[hamradio-commits] [gnss-sdr] 210/303: Switch from python Cheetah to Mako and add Python 3 support

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:36:02 UTC 2017


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

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit eaf369bd776001aec7ab622a3ecee7b1f086cb41
Merge: 343410d 03ca18d
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Mon Dec 26 12:44:40 2016 +0100

    Switch from python Cheetah to Mako and add Python 3 support
    
    This commit introduces two new dependencies: python-mako and python-six. This is based on two facts:
    
     * Cheetah templates, used by VOLK_GNSSSDR to generate the library, are deprecated (see https://groups.google.com/forum/#!topic/mako-discuss/1UrwjXnQzxU). The original VOLK is switching to python’s Mako template engine + python-six, and also dropping the Cheetah dependency (see https://github.com/gnuradio/volk/pull/94 and https://github.com/gnuradio/volk/pull/102)
    
     * GNU Radio 3.8 will drop python 2.6 support and will be compatible with Python 3. They are possibly dropping out Cheetah templates, too.
    
    Since it is still not clear to me what dependencies will pull GNU Radio in version 3.8, and the date it will be released, I think the best way to proceed is to already switch from Cheetah to Mako, and to provide support to Python 3 via python-six. However, while the Cheetah templates were required by GNU Radio =< 3.8 and we knew they were already installed, now the new dependencies python-mako and python-six need to be installed by the user.
    
    Instructions in the README files have been updated. In summary:
    
    ```
    $ sudo apt-get install python-mako python-six
    ```

 CMakeLists.txt                                     |  79 ++++++++++-----
 README.md                                          |   7 +-
 cmake/Modules/SetupPython.cmake                    |  78 +++++++++++++++
 conf/gnss-sdr.conf                                 |   2 +-
 docs/doxygen/other/main_page.dox                   |  12 +--
 .../volk_gnsssdr/CMakeLists.txt                    |  19 ++--
 .../volk_gnsssdr_module/volk_gnsssdr/README.md     |   2 +-
 .../volk_gnsssdr/cmake/Modules/VolkPython.cmake    |   9 +-
 .../volk_gnsssdr/gen/volk_gnsssdr_arch_defs.py     |   8 +-
 .../volk_gnsssdr/gen/volk_gnsssdr_compile_utils.py |   8 +-
 .../volk_gnsssdr/gen/volk_gnsssdr_kernel_defs.py   |  10 +-
 .../volk_gnsssdr/gen/volk_gnsssdr_machine_defs.py  |   7 +-
 .../volk_gnsssdr/gen/volk_gnsssdr_tmpl_utils.py    |  28 ++----
 .../volk_gnsssdr/lib/CMakeLists.txt                |   7 +-
 .../python/volk_gnsssdr_modtool/cfg.py             |  10 +-
 .../volk_gnsssdr_modtool_generate.py               |   9 +-
 .../volk_gnsssdr/tmpl/volk_gnsssdr.tmpl.c          | 106 ++++++++++-----------
 .../volk_gnsssdr/tmpl/volk_gnsssdr.tmpl.h          |  14 +--
 .../tmpl/volk_gnsssdr_config_fixed.tmpl.h          |  10 +-
 .../volk_gnsssdr/tmpl/volk_gnsssdr_cpu.tmpl.c      |  25 +++--
 .../volk_gnsssdr/tmpl/volk_gnsssdr_cpu.tmpl.h      |   6 +-
 .../tmpl/volk_gnsssdr_machine_xxx.tmpl.c           |  76 ++++++---------
 .../volk_gnsssdr/tmpl/volk_gnsssdr_machines.tmpl.c |   8 +-
 .../volk_gnsssdr/tmpl/volk_gnsssdr_machines.tmpl.h |  24 ++---
 .../volk_gnsssdr/tmpl/volk_gnsssdr_typedefs.tmpl.h |   6 +-
 25 files changed, 332 insertions(+), 238 deletions(-)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list