Repository navigation
AVRO-4308: [python] Fix interop build failure from setuptools package discovery - #3894
Merged
Merged
Conversation
… discovery 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.
RyanSkraba
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
This pull request fixes the local/Docker Python interop build, which fails with:
The Hadoop tether tests leave behind a
userlogs/directory next to theavro/package. Becausepyproject.tomldid not configure packagediscovery, setuptools falls back to automatic flat-layout discovery, sees
two top-level packages (
avroanduserlogs), and refuses to build. Thisdoes not surface in GitHub Actions because each language is tested in
isolation and the tether tests never create
userlogs/there.The fix explicitly scopes setuptools package discovery to
avro*, so straydirectories such as
userlogs/are ignored. This resolves AVRO-4308.Verifying this change
This change is already covered by the existing interop test targets:
./build.sh interop-data-generateinlang/pywith auserlogs/directory present../build.sh interop-data-generateand./build.sh interop-data-testboth succeed.find_packages(include=["avro*"])->['avro', 'avro.test', 'avro.tether'].Documentation