[issue45024] Cannot extend collections ABCs with protocol

2021-08-28 Thread Anup Parikh
Anup Parikh added the comment: Yeah, you got the gist of what I meant, though, I guess that was a confusing example since there are apparently protocols for Iterable. But not for many of the other collection ABCs such as Sequence, e.g., the following doesn't work: from typing import

[issue45024] Cannot extend collections ABCs with protocol

2021-08-26 Thread Anup Parikh
New submission from Anup Parikh : Since the container ABCs are normal classes, and Protocol cannot subclass normal classes, there's no way to create a protocol that extends the ABCs without explicitly listing out all the methods needed for the collection. e.g., can't do this: from typing

[issue43334] venv does not install libpython

2021-03-16 Thread Anup Parikh
Anup Parikh added the comment: I'm seeing this issue in a third-party package that uses CMake and Make based build systems rather then setuptools (it's a mostly C library which additionally provides some python wrappers). Those build systems can normally parse a python installation

[issue43334] venv does not install libpython

2021-03-12 Thread Anup Parikh
Anup Parikh added the comment: Also, at least on windows, the C-API header files are also missing from the venv -- ___ Python tracker <https://bugs.python.org/issue43

[issue43334] venv does not install libpython

2021-03-12 Thread Anup Parikh
Anup Parikh added the comment: A typical python installation includes libpython libraries that C extensions can link to. Creating virtual environments with venv normally creates a replica of a python installation directory, including all the built in python modules. However, it doesn't seem

[issue43334] venv does not install libpython

2021-02-26 Thread Anup Parikh
New submission from Anup Parikh : The libpython.a or libpython.so objects are not copied/linked in new virtual environments when created with venv. -- components: C API, Installation, Library (Lib) messages: 387752 nosy: anuppari priority: normal severity: normal status: open title