xorbitsai / xoscar

Python actor framework for heterogeneous computing.
https://xoscar.dev
Apache License 2.0
89 stars 21 forks source link

issues when supporting python 3.12 #93

Open luweizheng opened 2 months ago

luweizheng commented 2 months ago

Python 3.12 needs setuptools > 64 and the newest setuptools and pip work differently.

  1. pip install -e ./ uses system's temp dir rather than the {xoscar}/build to build C and C++ so files. The CMakeLists files assume that the temp dir is {xoscar}/build. See https://github.com/pypa/pip/blob/24.1.1/src/pip/_internal/wheel_builder.py#L205 as it uses the system temp dir. And I do not find any method that configures the temp dir. However,python setup.py develop and python setup.py install work and use the {xoscar}/build as temp dir.

  2. await asyncio.wait_for(future, timeout=timeout) hangs https://github.com/xorbitsai/xoscar/blob/main/python/xoscar/backends/communication/socket.py#L136 this maybe a asyncio and Python 3.12 bug.