pkgsrc-Users archive

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

url2pkg error when creating python package



url2pkg exits with No module named 'setuptools.command.build_py', however
as per the details below, it should not be so.

Anything wrong with my setup?


# uname -a
NetBSD localhost 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

# python --version
Python 3.12.6

# pkg_info py312-setuptools | head -1
Information for py312-setuptools-74.1.2:

# python3.12
Python 3.12.6 (main, Sep 11 2024, 19:11:23) [GCC 7.5.0] on netbsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> from setuptools.command.build_py import build_py as _build
>>> 

# url2pkg https://files.pythonhosted.org/packages/72/c0/558372afa9b0bb485e56d15eacee7a099cac7fb744c
0b2ac17734b4d5468/quantities-0.16.0.tar.gz
===> Cleaning for quantities-0.16.0
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum BLAKE2s OK for quantities-0.16.0.tar.gz
=> Checksum SHA512 OK for quantities-0.16.0.tar.gz
===> Installing dependencies for quantities-0.16.0
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency ccache-[0-9]*: found ccache-3.7.12nb2
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for quantities-0.16.0
===> Extracting for quantities-0.16.0
Traceback (most recent call last):
  File "/usr/pkgsrc/work/wip/py-quantities/work/quantities-0.16.0/setup.py", line 2, in <module>
    from setuptools.command.build_py import build_py as _build
ModuleNotFoundError: No module named 'setuptools.command.build_py'


-- 
Mayuresh


Home | Main Index | Thread Index | Old Index