Uploaded image for project: 'Swift'
  1. Swift
  2. SR-10344

Linux packaging installs Python modules in wrong directory

    XMLWordPrintable

    Details

      Description

      Currently, the Linux toolchains install the LLDB Python module into:

      /usr/lib/python2.7/site-packages/
      

      However, this is the wrong location on Ubuntu. It means that if you then try and install Python on the system afterwards, you see:

      Preparing to unpack .../python2.7-minimal_2.7.12-1ubuntu0~16.04.4_amd64.deb ...
      new installation of python2.7-minimal; /usr/lib/python2.7/site-packages is a directory
      which is expected a symlink to /usr/local/lib/python2.7/dist-packages.
      please find the package shipping files in /usr/lib/python2.7/site-packages and
      file a bug report to ship these in /usr/lib/python2.7/dist-packages instead
      aborting installation of python2.7-minimal
      

      and the installation fails. Obviously, we should not be breaking user's Ubuntu systems

      After researching, I believe we should unpack to

      /usr/lib/python2.7/dist-packages/
      

      instead. In my testing, this works fine.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ianpartridge Ian Partridge
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: