Skip to content

Commit 046641b

Browse files
committed
Drop --build-option flag from isolated build script
1 parent 7db7771 commit 046641b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/changelog/2493.bugfix.rst

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)