Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swift-ci opened this issue May 1, 2019 · 1 comment
Open

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

swift-ci opened this issue May 1, 2019 · 1 comment
Assignees

Comments

@swift-ci
Copy link

swift-ci commented May 1, 2019

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.

@swift-ci
Copy link
Author

swift-ci commented May 2, 2019

Comment by Ian Partridge (JIRA)

Duplicate of https://bugs.swift.org/browse/SR-10344

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from swiftlang/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant