[issue37654] 2to3 no-ops on embeddable distribution

2021-10-20 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed
superseder:  -> Close 2to3 issues and list them here

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37654] 2to3 no-ops on embeddable distribution

2019-07-22 Thread Bill Collins


New submission from Bill Collins :

Firstly, I'd acknowledge that expecting 2to3 to work on the embeddable 
distribution might be the problem, but the mode of failure is silent and 
delayed.

The problem is that 2to3 loads fix names by searching for files in a package 
that end in '.py' 
(https://github.com/python/cpython/blame/master/Lib/lib2to3/refactor.py#L30) 
which isn't much use on the embeddable distribution where everything is 
pre-comipled.

So, installing an sdist package that relies on 2to3 will succeed, but any 
attempt to then actually use the installed package will fail.

I'm not sure whether the correct behavior here might be to

1. Fix 2to3 to load from pyc files (explicitly enabling 2to3 based installation 
on embeddable)
2. Fix 2to3 to fail when no converters are found (or similar; explicitly 
*disabling* 2to3 based installation on embeddable).

Or something else entirely.

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 348304
nosy: Bill Collins
priority: normal
severity: normal
status: open
title: 2to3 no-ops on embeddable distribution
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com