Skip to content

Commit 0f9010c

Browse files
committed
Adding fake CDLL object to satisfy pip installer.
1 parent 6424318 commit 0f9010c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

graalpython/lib-graalpython/ctypes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40+
# Taken from pypy
41+
class CDLL(object):
42+
"""An instance of this class represents a loaded dll/shared
43+
library, exporting functions using the standard C calling
44+
convention (named 'cdecl' on Windows).
45+
46+
The exported functions can be accessed as attributes, or by
47+
indexing with the function name. Examples:
48+
49+
<obj>.qsort -> callable object
50+
<obj>['qsort'] -> callable object
51+
52+
Calling the functions releases the Python GIL during the call and
53+
reacquires it afterwards.
54+
"""
55+
pass

0 commit comments

Comments
 (0)