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 i
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:
f
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 installatio
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
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
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