Pip installing kayobe-confg fails when multiple packages are detected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kayobe |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If you create additional directories in the the repository root e.g hello. You cannot install kayobe-config as a pip package:
Processing /home/will/
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
[pbr] Generating ChangeLog
/
!!
See https:/
!!
/
!!
See https:/
!!
error: Multiple top-level packages discovered in a flat-layout: ['hi', 'etc'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I think the issue ocurs with setuptools > 61.
Changed in kayobe: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/c/openstack /kayobe- config/ +/922477
Review: https:/