Skip to content

Commit 2e0def4

Browse files
authored
Drop --build-option flag from isolated build script (#2497)
1 parent 7db7771 commit 2e0def4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/changelog/2497.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dropped ``--build-option`` in isolated builds, an alternative fix for the ``SetuptoolsDeprecationWarning`` about using ``--global-option`` -- by :user:`adamchainz`

src/tox/helper/build_isolated.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def _ensure_module_in_paths(module, paths):
3838
if backend_obj:
3939
backend = getattr(backend, backend_obj)
4040

41-
basename = backend.build_sdist(dist_folder, {"--build-option": ["--formats=gztar"]})
41+
basename = backend.build_sdist(dist_folder, {})
4242
print(basename)

0 commit comments

Comments
 (0)