Skip to content

Commit eab0e48

Browse files
authored
AVRO-4308: [python] Fix interop build failure from setuptools package discovery (#3894)
The local Docker interop build failed with "Multiple top-level packages discovered in a flat-layout: ['avro', 'userlogs']". The Hadoop tether tests leave a userlogs/ directory next to the avro/ package, which breaks setuptools automatic flat-layout package discovery. Explicitly scope package discovery to avro* so stray directories such as userlogs/ are ignored.
1 parent 61270d4 commit eab0e48

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lang/py/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ zstandard = ["zstandard"]
5656
[tool.ruff]
5757
line-length = 150
5858

59+
[tool.setuptools.packages.find]
60+
include = ["avro*"]
61+
5962
[tool.setuptools.package-data]
6063
"avro" = [
6164
"HandshakeRequest.avsc", "HandshakeResponse.avsc", "LICENSE.txt",

0 commit comments

Comments
 (0)