New submission from Anthony Sottile <asott...@umich.edu>:

In an effort to try and fix some of the ecosystem before python3.10 (or 4.0) is 
a thing, I figured I'd set up a build where the version is bumped and see 
what's broken.

If you're interested in reproducing my findings, I've included a build that's 
installable in ubuntu in this PPA: 
https://launchpad.net/~asottile/+archive/ubuntu/python3.10

It's mostly based on this patch: 
https://github.com/asottile/python3.10/blob/ubuntu/bionic/debian/patches/0029-pretend-3.10.patch

while tracking down why pip doesn't work, I've encountered the following from 
doing this:

$ python3.10 -c 'import sys; print(sys.path)'
['', '/usr/lib/python31.zip', '/usr/lib/python3.10', 
'/usr/lib/python3.10/lib-dynload', '/usr/lib/python3/dist-packages']


notably, the second `sys.path` entry appears incorrect and should probably be 
`/usr/lib/python310.zip`

this should be an easy fix:

https://github.com/python/cpython/blob/1b3892243433da7eae7f5f3a4f98f13d309c8926/Modules/getpath.c#L1019-L1028

----------
messages: 348100
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: [3.10 prep] zip path incorrect
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37616>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to