Skip to content

Warning about "--global-option": ["--formats=gztar"] emitted when using setuptools 64.0.1 #2478

Closed
@jwodder

Description

@jwodder

When using tox to build or install a setuptools-based package, if the tox-created virtualenv contains setuptools v64.0.1, then the following warning is emitted:

/Users/jwodder/work/pyproj/linesep/.tox/.package/lib/python3.9/site-packages/setuptools/build_meta.py:306: SetuptoolsDeprecationWarning:
            The arguments ['--formats=gztar'] were given via `--global-option`.
            Please use `--build-option` instead,
            `--global-option` is reserved to flags like `--verbose` or `--quiet`.

This appears to be due to this line of code in tox's source.

To Reproduce

  1. Clone, say, https://github.com/jwodder/linesep
  2. Ensure virtualenv uses the latest version of setuptools by running virtualenv --upgrade-embed-wheels
  3. Run tox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions