Menu

#2471 pyosaf: Generate the AIS Python bindings from the C header files

future
accepted
None
enhancement
pyosaf
-
major
False
2019-07-23
2017-05-30
No

The existing Python bindings have been created by hand. This causes several problems:

  • The python bindings have not (always) been updated when the C header files have been modified, for example when adding a new OpenSAF extension. It is also difficult to know if the python bindings are complete or if some function is missing
  • There is a risk for typos and copy-paste bugs when manually translating the C header files to Python
  • Because of the risk for typos, all API functions and structure definitions must be tested individually
  • Due to the manual effort, there is a risk for inconsistencies in how different C functions are mapped to Python - especially over time if different people are working with the bindings

To solve the above mentioned probelms, the suggestion is to instead translate the C header files to Python automatically at build time.

Related

Tickets: #2472

Discussion

  • Anders Widell

    Anders Widell - 2017-07-01
    • Milestone: 5.17.08 --> 5.17.10
     
  • Anders Widell

    Anders Widell - 2017-10-30
    • Milestone: 5.17.10 --> 5.18.01
     
  • Anders Widell

    Anders Widell - 2018-02-02
    • Milestone: 5.18.01 --> 5.18.04
     
  • Anders Widell

    Anders Widell - 2018-02-14
    • status: assigned --> accepted
     
  • Anders Widell

    Anders Widell - 2018-04-20
    • Milestone: 5.18.04 --> 5.18.06
     
  • Gary Lee

    Gary Lee - 2018-06-29
    • Milestone: 5.18.06 --> 5.18.08
     
  • Gary Lee

    Gary Lee - 2018-09-29
    • Milestone: 5.18.09 --> 5.18.12
     
  • Gary Lee

    Gary Lee - 2019-01-09
    • Milestone: 5.19.01 --> 5.19.03
     
  • Gary Lee

    Gary Lee - 2019-03-26
    • Milestone: 5.19.03 --> 5.19.06
     
  • Gary Lee

    Gary Lee - 2019-07-23
    • Milestone: 5.19.07 --> future
     

Log in to post a comment.