xorbitsai/xoscar

issues when supporting python 3.12

Closed this issue · 0 comments

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.