From e8b2442e1bacce72d9877eb0163eabe17bcdf2b2 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 16 Jul 2022 08:59:38 +0000 Subject: url2pkg: split support files for Python distutils and setuptools When url2pkg determines the metadata of a Python module, it had merged the two implementations for Python's distutils and setuptools, which made the code hard to understand. Split them again. Extend the support for setuptools, so that url2pkg correctly handles wip/pytorch; it still fails because pytorch does some Git stuff from inside setup.py, but that may be fixed later. Bump version to 22.2.0. --- pkgtools/url2pkg/files/python/setuptools/command/build_ext.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pkgtools/url2pkg/files/python/setuptools/command/build_ext.py (limited to 'pkgtools/url2pkg/files/python/setuptools/command/build_ext.py') diff --git a/pkgtools/url2pkg/files/python/setuptools/command/build_ext.py b/pkgtools/url2pkg/files/python/setuptools/command/build_ext.py new file mode 100644 index 00000000000..d48c6f859f3 --- /dev/null +++ b/pkgtools/url2pkg/files/python/setuptools/command/build_ext.py @@ -0,0 +1,7 @@ +# $NetBSD: build_ext.py,v 1.1 2022/07/16 08:59:39 rillig Exp $ +# +# Fake implementation of setuptools.command.build_ext. +# +# https://github.com/pypa/setuptools/blob/main/setuptools/command/build_ext.py + +# used by pkgsrc package wip/pytorch 1.12.0 -- cgit v1.2.3