Qpid
  1. Qpid
  2. QPID-3729

C++ cmake build does not install python pieces needed for tests

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.14
    • Fix Version/s: 0.15
    • Component/s: Build Tools
    • Labels:
      None
    • Environment:

      cmake all platforms

      Description

      The cpp/src/tests/Makefile.am runs python setup.py install on the needed python items for the tests. The cmake build does not - it tries to rely on setting paths to the proper locations in the source tree. The paths to the source tree don't work right, and compiled python files get out of date easily, resulting is false fails when the tests are run via cmake. The cmake build should run the same python setup that the autotools build does.

        Activity

        Hide
        Chuck Rolke added a comment -

        I've been getting an error from a CMake run on Windows:

        cpp/src/CMakeLists.txt line 1488
        add_subdirectory(tests)

        cpp/src/tests/CMakeLists.txt line 291
        execute_process(COMMAND $

        {PYTHON_EXECUTABLE}

        setup.py install ...)

        running install
        Traceback (most recent call last):
        File "setup.py", line 316, in <module>
        distclass=distclass)
        File "C:\Program Files (x86)\Python27\lib\distutils\core.py", line 152, in setup
        dist.run_commands()
        File "C:\Program Files (x86)\Python27\lib\distutils\dist.py", line 953, in run_commands
        self.run_command(cmd)
        File "C:\Program Files (x86)\Python27\lib\distutils\dist.py", line 971, in run_command
        cmd_obj.ensure_finalized()
        File "C:\Program Files (x86)\Python27\lib\distutils\cmd.py", line 109, in ensure_finalized
        self.finalize_options()
        File "C:\Program Files (x86)\Python27\lib\distutils\command\install.py", line 353, in finalize_options
        'userbase', 'usersite')
        File "C:\Program Files (x86)\Python27\lib\distutils\command\install.py", line 504, in convert_paths
        setattr(self, attr, convert_path(getattr(self, attr)))
        File "C:\Program Files (x86)\Python27\lib\distutils\util.py", line 201, in convert_path
        raise ValueError, "path '%s' cannot be absolute" % pathname
        ValueError: path '/Lib/site-packages' cannot be absolute

        Any clues on what's missing?

        Show
        Chuck Rolke added a comment - I've been getting an error from a CMake run on Windows: cpp/src/CMakeLists.txt line 1488 add_subdirectory(tests) cpp/src/tests/CMakeLists.txt line 291 execute_process(COMMAND $ {PYTHON_EXECUTABLE} setup.py install ...) running install Traceback (most recent call last): File "setup.py", line 316, in <module> distclass=distclass) File "C:\Program Files (x86)\Python27\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Program Files (x86)\Python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "C:\Program Files (x86)\Python27\lib\distutils\dist.py", line 971, in run_command cmd_obj.ensure_finalized() File "C:\Program Files (x86)\Python27\lib\distutils\cmd.py", line 109, in ensure_finalized self.finalize_options() File "C:\Program Files (x86)\Python27\lib\distutils\command\install.py", line 353, in finalize_options 'userbase', 'usersite') File "C:\Program Files (x86)\Python27\lib\distutils\command\install.py", line 504, in convert_paths setattr(self, attr, convert_path(getattr(self, attr))) File "C:\Program Files (x86)\Python27\lib\distutils\util.py", line 201, in convert_path raise ValueError, "path '%s' cannot be absolute" % pathname ValueError: path '/Lib/site-packages' cannot be absolute Any clues on what's missing?
        Hide
        Steve Huston added a comment -

        Fixed on trunk r1228493

        Show
        Steve Huston added a comment - Fixed on trunk r1228493

          People

          • Assignee:
            Steve Huston
            Reporter:
            Steve Huston
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development