pkgsrc-Users archive

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

Re: wip/py-torch: Suggestions needed



Am 15.07.2022 um 20:27 schrieb Mayuresh:
On Fri, Jul 15, 2022 at 07:52:32PM +0200, Roland Illig wrote:
Am 15.07.2022 um 18:55 schrieb Mayuresh:
I have committed wip-pytorch in WIP state.

Where did you commit it? I don't see any directory matching "*py*torc*".

Sorry, forgot push, done now. wip/py-torch

url2pkg exited with errors and left the following line

What did you do before you got these error messages?
What were the exact error messages?

url2pkg https://github.com/pytorch/pytorch/archive/refs/tags/v1.12.0.tar.gz > out 2> err

err:

fetch: ``-r'' requires ``-f distinfo''.
fetch: Falling back to non-resume fetch.

Works for me. Do you have some special configuration in your mk.conf?

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'.
Traceback (most recent call last):
   File "/usr/local/netbsd/work/wip/py-torch/work/pytorch-1.12.0/setup.py", line 221, in <module>
     from setuptools.dist import Distribution
ModuleNotFoundError: No module named 'setuptools.dist'; 'setuptools' is not a package

When url2pkg has fetched and extracted a package, it looks whether there
is a setup.py. If so, it prepares a fake 'setuptools' package and runs
'setup.py', intercepting the normal package setup to intercept the
dependencies of the package.

This fake 'setuptools' package has not implemented 'setuptools.dist' for
now, that's why you got the error message. Thanks for the example
package, I'll extend url2pkg to handle it.

Roland



Home | Main Index | Thread Index | Old Index