1 |
commit: 36ed429cd826bfc8341cf8c10bd5e704dcde5a3c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 4 09:24:22 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 4 09:25:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ed429c |
7 |
|
8 |
distutils-r1.eclass: Skip pyproject.toml check if DUS=manual |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/distutils-r1.eclass | 2 ++ |
13 |
1 file changed, 2 insertions(+) |
14 |
|
15 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
16 |
index 3513a74c4db..46253759b1d 100644 |
17 |
--- a/eclass/distutils-r1.eclass |
18 |
+++ b/eclass/distutils-r1.eclass |
19 |
@@ -610,6 +610,8 @@ _distutils-r1_disable_ez_setup() { |
20 |
# @DESCRIPTION: |
21 |
# Generate setup.py for pyproject.toml if requested. |
22 |
_distutils-r1_handle_pyproject_toml() { |
23 |
+ [[ ${DISTUTILS_USE_SETUPTOOLS} == manual ]] && return |
24 |
+ |
25 |
if [[ ! -f setup.py && -f pyproject.toml ]]; then |
26 |
if [[ ${DISTUTILS_USE_SETUPTOOLS} != pyproject.toml ]]; then |
27 |
eerror "No setup.py found but pyproject.toml is present. In order to enable" |