zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2.04k stars 592 forks source link

Replace dl usage with ctypes #1721

Closed pepone closed 3 months ago

pepone commented 8 months ago

We still use dl module to set the loader flags, but this module was removed in Python3, we should use ctypes

https://github.com/zeroc-ice/ice/blob/f04017972bf5913dd0b32ebcd4126cffa7b955de/python/python/Ice/__init__.py#L33-L49

pepone commented 3 months ago

We can use os constants added in 3.3 see https://docs.python.org/3/library/os.html#os.RTLD_NOW