Skip to content

[SR-10591] Swift 5.0.1 docker images prevent Python install #289

Open
@swift-ci

Description

@swift-ci
Previous ID SR-10591
Radar None
Original Reporter djones6 (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Docker
Labels Bug
Assignee @shahmishal
Priority Medium

md5: a34b15376617ac94bddd7d6b61f54b0b

Issue Description:

The latest swift:5.0.1 Docker images contain some Python modules in directory /usr/lib/python2.7/site-packages - but Debian / Ubuntu expect them to be installed to /usr/lib/python2.7/dist-packages instead, and for site-packages to be a symlink to dist-packages.

If you try to install python, you currently get:

Preparing to unpack .../python2.7-minimal_2.7.15~rc1-1ubuntu0.1_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

A workaround is to move the contents of site-packages into dist-packages, and create the symlink, after which python will install happily.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions