diff --git a/docs/changelog/2497.bugfix.rst b/docs/changelog/2497.bugfix.rst new file mode 100644 index 000000000..3be932089 --- /dev/null +++ b/docs/changelog/2497.bugfix.rst @@ -0,0 +1 @@ +Dropped ``--build-option`` in isolated builds, an alternative fix for the ``SetuptoolsDeprecationWarning`` about using ``--global-option`` -- by :user:`adamchainz` diff --git a/src/tox/helper/build_isolated.py b/src/tox/helper/build_isolated.py index fda88fda1..d70cf1c7d 100644 --- a/src/tox/helper/build_isolated.py +++ b/src/tox/helper/build_isolated.py @@ -38,5 +38,5 @@ def _ensure_module_in_paths(module, paths): if backend_obj: backend = getattr(backend, backend_obj) -basename = backend.build_sdist(dist_folder, {"--build-option": ["--formats=gztar"]}) +basename = backend.build_sdist(dist_folder, {}) print(basename)