pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: virtualenv/pip failure, how to debug/fix?
On Thu, Dec 30, 2021 at 05:24:10PM +0100, Thomas Klausner wrote:
> On Thu, Dec 30, 2021 at 10:26:23AM -0500, Greg Troxel wrote:
> >
> > I have succeeded, by doing
> >
> > 1) update to the python3.9 you just committed
> >
> > 2) adding this symlink instead my venv
> >
> > lrwxr-xr-x 1 gdt wheel 48 Dec 30 10:21 lib/python3.9/_sysconfigdata__netbsd9_.py -> /usr/pkg/lib/python3.9/_sysconfigdata_netbsd9.py
>
> _distutils_system_mod has:
>
> _sysconfig_name_tmpl='_sysconfigdata_{platform}',
>
> and I thought platform would be expanded to netbsd9, and I had thought
> that pip uses setuptools and thus this file.
The corresponding patch for old-style distutils is in
e.g. lang/python310/patches/patch-Lib_sysconfig.py :
--- Lib/sysconfig.py.orig 2021-07-10 00:51:07.000000000 +0000
+++ Lib/sysconfig.py
@@ -394,16 +394,13 @@ def get_makefile_filename():
config_dir_name = f'config-{_PY_VERSION_SHORT}{sys.abiflags}'
else:
config_dir_name = 'config'
- if hasattr(sys.implementation, '_multiarch'):
- config_dir_name += f'-{sys.implementation._multiarch}'
return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
def _get_sysconfigdata_name():
- multiarch = getattr(sys.implementation, '_multiarch', '')
return os.environ.get(
'_PYTHON_SYSCONFIGDATA_NAME',
- f'_sysconfigdata_{sys.abiflags}_{sys.platform}_{multiarch}',
+ f'_sysconfigdata_{sys.platform}',
)
Thomas
Home |
Main Index |
Thread Index |
Old Index