Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/68858.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed source package builds (DEB/RPM) failing with ``LookupError: hatchling is already being built`` by adding ``hatchling`` to the ``--only-binary`` allow-list so pip uses its universal wheel instead of attempting a circular source build.
4 changes: 2 additions & 2 deletions tools/pkg/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def onedir_dependencies(
"-v",
"--use-pep517",
"--no-cache-dir",
"--only-binary=maturin,apache-libcloud,pymssql",
"--only-binary=maturin,apache-libcloud,pymssql,hatchling",
]
if platform == "windows":
python_bin = env_scripts_dir / "python"
Expand All @@ -627,7 +627,7 @@ def onedir_dependencies(
python_bin = env_scripts_dir / "python3"
install_args.append("--no-binary=:all:")
install_args.append(
"--only-binary=maturin,apache-libcloud,pymssql,cassandra-driver"
"--only-binary=maturin,apache-libcloud,pymssql,cassandra-driver,hatchling"
)

# Cryptography needs openssl dir set to link to the proper openssl libs.
Expand Down
Loading