On 23.01.2021 19:47, Marco Atzeri wrote:
On 23.01.2021 19:23, Oleh Svirshchevsky via Cygwin wrote:
Latest python38 package (3.8.7-1) fails to execute 'ensurepip',
3.8.3.-1 works
Latest version:
$ python3.8.exe --version
Python 3.8.7
$ python3.8.exe -Im ensurepip --upgrade --default-pip
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/usr/lib/python3.8/ensurepip/__init__.py", line 121
with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
^
IndentationError: unexpected indent
Hi Oleh,
the attached patch should solve the indentation mistakes.
Can you confirm it ?
Regards
Marco
--- Lib/ensurepip/__init__.py 2021-01-12 14:56:53.283024300 +0100
+++ /usr/lib/python3.8/ensurepip/__init__.py 2021-01-23 20:07:15.593584200
+0100
@@ -118,9 +118,9 @@
additional_paths = []
for project, version, py_tag in _PROJECTS:
wheel_name = _wheels[project][version]
- with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
+ with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
with open(os.path.join(tmpdir, wheel_name), "wb") as fp:
- fp.write(sfp.read())
+ fp.write(sfp.read())
additional_paths.append(os.path.join(tmpdir, wheel_name))
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple