Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1475

shiboken_tool.py is installed to a wrong path and doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.0.0
    • Shiboken
    • None
    • Linux/X11

    Description

      In both 5.15 and 6.0, shiboken_tool.py contains

      def main():
          # The tools listed as entrypoints in setup.py are copied to 'scripts/..'
          cmd = os.path.join("..", os.path.basename(sys.argv[0]))
          command = [os.path.join(os.path.dirname(os.path.realpath(__file__)), cmd)]
          command.extend(sys.argv[1:])
          sys.exit(subprocess.call(command))
      

      But that's not true: cmake installs it to ${prefix}/bin

      # shiboken6 setuptools entry point
      install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../shiboken_tool.py
              DESTINATION bin
      

      so it doesn't work:

      $ shiboken_tool.py  
      Traceback (most recent call last):
      ...
      FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/../shiboken_tool.py'

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            arojas Antonio Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes