Skip to content

Conversation

@ktdreyer
Copy link
Contributor

When dh_python2 parses the requires.txt files in Calamari and Calamari's bundled libraries, it translates the dependencies listed there into "python-" packages and adds them into ${python:Depends}.

In the past this has led to the calamari-server .deb depending on system packages that do not exist, which leads to installation failures.

Since ${python:Depends} doesn't work well with Calamari's method of bundling libraries in a virtualenv, just remove it and hard-code the list of python Depends in /debian/control.

(I've just copied & pasted the existing list that dh_python2 was already picking up, so maybe this Depends list could be trimmed further, with experimentation.)

When dh_python2 parses the `requires.txt` files in Calamari and
Calamari's bundled libraries, it translates the dependencies listed
there into "python-" packages and adds them into ${python:Depends}.

In the past this has led to the calamari-server .deb depending on system
packages that do not exist, which leads to installation failures.

Since ${python:Depends} doesn't work well with Calamari's method of
bundling libraries in a virtualenv, just remove it and hard-code the
list of python Depends in /debian/control.

(I've just copied & pasted the existing list that dh_python2 was already
picking up, so maybe this Depends list could be trimmed further, with
experimentation.)
@ktdreyer
Copy link
Contributor Author

This will fix the python-attrs dependency issue described at https://bugzilla.redhat.com/1422379

@ChristinaMeno ChristinaMeno merged commit 9deb5f1 into ceph:1.5 Feb 15, 2017
@ChristinaMeno
Copy link
Contributor

@ktdreyer Great work! Thank you

@ktdreyer ktdreyer deleted the wip-1.5-deb-python-depends branch February 15, 2017 23:16
@ktdreyer
Copy link
Contributor Author

ktdreyer commented Mar 6, 2018

1.3 cherry-pick is #529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants