Project

General

Profile

Actions

Bug #20707

closed

CMake distutil module forces Python projects to have useless files

Added by Alfredo Deza almost 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
build
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I am in the process of creating a new Python component in Ceph and I've been forced to add these:

README.rst, requirements.txt, test-requirements.txt

Because the module wants them:

set(py_srcs setup.py README.rst requirements.txt test-requirements.txt ${name})

The build fails if any of those aren't present, like

[  4%] [  4%] make[2]: *** No rule to make target `../src/ceph-volume/requirements.txt', needed by `src/ceph-volume/requirements.txt'.  Stop.

It is absolutely unnecessary to require a `test-requirements.txt` and a `requirements.txt`. If some other Ceph component wishes to include those, then it should
be up to that component to find a way to include them and not force everything else to add empty files to be able to build Ceph.

Actions

Also available in: Atom PDF