Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-9462

Allow disabling adding underscores to pybind11 library names

    XMLWordPrintable

    Details

      Description

      Our final pybind11 coding conventions dictate that the wrapper library name should match the source code name. However, all of our existing pybind11 wrappers assume that the library name will always start with an underscore (whether the source file name does or not).

      I will add a new flag addUnderscore=True to the pybind11 function. New code should specify this flag as False. Old code will continue to work unchanged.

        Attachments

          Activity

          Hide
          rowen Russell Owen added a comment -

          I tested it using sphgeom and it works. Is this solution satisfactory?

          Show
          rowen Russell Owen added a comment - I tested it using sphgeom and it works. Is this solution satisfactory?
          Hide
          pschella Pim Schellart [X] (Inactive) added a comment -

          Looks ok, although perhaps simply adding a second version of the method (with a different name) would be easier. It only has to live for a few weeks.

          Show
          pschella Pim Schellart [X] (Inactive) added a comment - Looks ok, although perhaps simply adding a second version of the method (with a different name) would be easier. It only has to live for a few weeks.
          Hide
          rowen Russell Owen added a comment -

          I thought of using a different name, but could not think of one I was happy with. The current name is really nice. I'm not entirely convinced that we will manage a full cleanup pass in a few weeks, though I'd be happy if it did occur.

          Show
          rowen Russell Owen added a comment - I thought of using a different name, but could not think of one I was happy with. The current name is really nice. I'm not entirely convinced that we will manage a full cleanup pass in a few weeks, though I'd be happy if it did occur.

            People

            Assignee:
            rowen Russell Owen
            Reporter:
            rowen Russell Owen
            Reviewers:
            Pim Schellart [X] (Inactive)
            Watchers:
            Jim Bosch, Krzysztof Findeisen, Pim Schellart [X] (Inactive), Russell Owen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.