Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.0.0
-
None
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'