News for hackers. Stuff that matters.
Re:You shouldn't invoke setup.py directly by webknjaz on Thursday October 21, 2021 @09:27AM (#28944030)
Note that with the recent versions of `build` it's recommended not to pass `--sdist --wheel`. Just do:

    python -m build
With this invocation it'll produce an sdist, and then it'll build a wheel from that tarball, not from your Git checkout which is much closer to what pip does in the wild. When building both artifacts from a Git checkout, it's possible to mess up packaging making it impossible to produce a wheel out of an sdist (which is necessary in many places, including installs from tarballs that pip tries to build wheels from and downstream packaging in different OS ecosystems).

There are no comments on this comment yet.