setup.py is not PEP517 compliant

Bug #1978328 reported by Brett Holman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

A bug[1] was filed downstream for this, and reported upstream in #cloud-init IRC by Sam (Gentoo maintainer).

This causes build failure on Gentoo/OpenRC, which is carrying a downstream workaround[2] for now.

It looks like the upstream installation method for init scripts and additional bits (non-Python files at all) isn't compatible with PEP517, so PEP517 installs are broken right now.

PEP517 with the wheel spec doesn't have a good way of installing data files.

[1] https://bugs.gentoo.org/850628
[2] https://github.com/gentoo/gentoo/commit/44cfdb3c49f7ebce1e66324ad5ac68285d8d08bb

Revision history for this message
Brett Holman (holmanb) wrote :
Revision history for this message
Brett Holman (holmanb) wrote :
Revision history for this message
Brett Holman (holmanb) wrote (last edit ):

From Sam, after sharing the logs:

There's a hint of it at the very end because you see the chmod fails (there was a missing die in the ebuild).

run:

python -m build -C--init-system=openrc # no, that's not a typo, no space after 'C'
python3 -m installer dist/cloud*.whl --destdir=/tmp/foo

/tmp/foo/* only contains the usr/bin and usr/lib/*

Brett Holman (holmanb)
Changed in cloud-init:
status: New → Triaged
James Falcon (falcojr)
Changed in cloud-init:
importance: Undecided → Medium
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.