Ensure usage of modern packages when using 'setup.py develop'.
Review Request #12524 — Created Aug. 14, 2022 and submitted — Latest diff uploaded
The Python packaging world has long since recommended against eggs and
setup.py develop
. However, until we move to apyproject.toml
with
a custom build system, this is our best option.Review Board, Djblets, and other packages have implemented a custom
setup.py develop
for ages, which wrapspip install -e .
(the
generally preferred method) and then installs our development
dependencies.This change adds the same logic to the RBTools packaging. This will
ensure that we don't ever introduce legacy eggs through RBTools for
development, and always prefer model wheels.For now,
setup.py develop
is the preferred way of preparing RBTools
for development. In time, we will transition away fromsetup.py
and
will preferpip install -e .
.
Successfully installed RBTools on Python 3.7-3.11, with all dependencies
as wheels, usingsetup.py develop
.