Skip to content

Avoid use of setup.py (anything) #1100

Closed

Description

@jaraco

In this comment, I describe an issue where tox invokes setup.py --name (not sure why exactly).

As the Python Packaging ecosystem is seeking to discourage use of distutils and setuptools, and as PEP 517/518 provides a mechanism for other build systems to be in place, other projects like tox should seek to find replacements that avoid the invocation of setup.py and the issues that arise from using it.

In pypa/packaging-problems#224, I've begun the process of specifying what will be necessary to actually support this use-case (and similar). I'm creating this issue as a placeholder but also to investigate why setup.py --name is used and if it could possibly be replaced by something else before proper support for unbuilt package metadata is available.

Activity

  1. gaborbernat commented on Dec 10, 2018

    @gaborbernat
    Member

    Note this probably is something that should be done only when isolated build is turned on. Otherwise for backwards compatibility we do need to support features. Now we need to investigate where we do use it pep 517 provides alternatives. If not I'm afraid to not loose features we probably need to conditionally enable this calls when the backend is setuptools. Definitely though something we need to investigate and address.

  2. Aareon commented on Dec 17, 2018

    @Aareon

    Or simply allow both methods. Old setup.py should be left, as well as maintained, but I believe providing the new packaging standards is a good idea.

  3. added
    help:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.
    and removed
    needs:discussionIt's not quite clear if and how this should be done
    on May 3, 2019
  4. gaborbernat commented on Jan 13, 2022

    @gaborbernat
    Member

    Done with tox 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:package-buildingfeature:changesomething exists already but should behave differentlyhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions