tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: infrastructure change needed for python modules



On Tue, Nov 23, 2021 at 07:42:43AM -0500, Greg Troxel wrote:
> 
> Thomas Klausner <wiz%NetBSD.org@localhost> writes:
> 
> > The latest setuptools release points to an article which explains that
> > setup.py should not be used any longer, and what the replacements are:
> >
> > https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
> >
> > I've noticed for some time that `setup.py test` were already broken
> > quite often, but it seems to me that 'setup.py build' and 'setup.py
> > install' should not be used any longer either. (They still work and
> > will probably keep working for some possibly quite long time.)
> >
> > However, we do use setup.py for basically all python modules (see
> > lang/python/extension.mk, which is included by both distutils.mk and
> > egg.mk).
> 
> Do you mean "this should be fixed in the future, before it causes
> trouble", or "the recent update of setuptools broke half the python
> modules"?

This should be fixed in the future, before it causes trouble.

(we have many do-test target overrides for python packages already, so
part of the future is already here ;) but build/install still works)
 Thomas
 
> > Can someone who's interested in Python and pkgsrc please convert
> > pkgsrc to current Python best practices?
> 
> Yes, please, modulo timing, perhaps just after the branch, perhaps soon,
> depending on if things are not or are broken now.




Home | Main Index | Thread Index | Old Index