xoscar 0.7.3__cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.7.5__cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xoscar might be problematic. Click here for more details.

@@ -186,8 +186,8 @@ class MainActorPool(MainActorPoolBase):
186
186
  # as the double fork may result in a new process as the parent.
187
187
  psutil.Process(main_pool_pid)
188
188
  except psutil.NoSuchProcess:
189
- logger.info("Exit due to main pool %s exit.", main_pool_pid)
190
- os._exit(0)
189
+ logger.error("Exit due to main pool %s exit.", main_pool_pid)
190
+ os._exit(233) # Special exit code for debugging.
191
191
  except Exception as e:
192
192
  logger.exception("Check ppid failed: %s", e)
193
193
  time.sleep(10)
@@ -278,14 +278,20 @@ class MainActorPool(MainActorPoolBase):
278
278
  "main_pool_pid": os.getpid(),
279
279
  },
280
280
  )
281
- process = await create_subprocess_exec(
281
+ cmd = [
282
282
  start_python,
283
283
  "-m",
284
284
  "xoscar.backends.indigen",
285
285
  "start_sub_pool",
286
286
  "-sn",
287
287
  shm.name,
288
- )
288
+ ]
289
+ # We need to inherit the parent environment to ensure the subprocess works correctly on Windows.
290
+ new_env = dict(os.environ)
291
+ env = actor_pool_config.get_pool_config(process_index).get("env") or {}
292
+ new_env.update(env)
293
+ logger.info("Creating sub pool via command: %s", cmd)
294
+ process = await create_subprocess_exec(*cmd, env=new_env)
289
295
 
290
296
  def _get_external_addresses():
291
297
  try:
@@ -316,7 +322,7 @@ class MainActorPool(MainActorPoolBase):
316
322
  shm.close()
317
323
  shm.unlink()
318
324
  if external_addresses is None:
319
- raise OSError("Start sub pool failed.")
325
+ raise OSError(f"Start sub pool failed, returncode: {process.returncode}")
320
326
  return process, external_addresses
321
327
 
322
328
  async def append_sub_pool(
xoscar/virtualenv/uv.py CHANGED
@@ -14,6 +14,7 @@
14
14
 
15
15
  from __future__ import annotations
16
16
 
17
+ import logging
17
18
  import os
18
19
  import shutil
19
20
  import subprocess
@@ -25,6 +26,7 @@ from typing import Optional
25
26
  from .core import VirtualEnvManager
26
27
 
27
28
  UV_PATH = os.getenv("XOSCAR_UV_PATH")
29
+ logger = logging.getLogger(__name__)
28
30
 
29
31
 
30
32
  def _is_in_pyinstaller():
@@ -53,6 +55,8 @@ class UVVirtualEnvManager(VirtualEnvManager):
53
55
  # in this case we'd better specify the same python version
54
56
  python_version = f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}"
55
57
  cmd += ["--python", python_version]
58
+
59
+ logger.info("Creating virtualenv via command: %s", cmd)
56
60
  subprocess.run(cmd, check=True)
57
61
 
58
62
  def install_packages(self, packages: list[str], **kwargs):
@@ -87,6 +91,7 @@ class UVVirtualEnvManager(VirtualEnvManager):
87
91
  else:
88
92
  cmd += [option, param_value]
89
93
 
94
+ logger.info("Installing packages via command: %s", cmd)
90
95
  self._install_process = process = subprocess.Popen(cmd)
91
96
  returncode = process.wait()
92
97
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xoscar
3
- Version: 0.7.3
3
+ Version: 0.7.5
4
4
  Summary: Python actor framework for heterogeneous computing.
5
5
  Home-page: http://github.com/xorbitsai/xoscar
6
6
  Author: Qin Xuye
@@ -47,7 +47,7 @@ xoscar/backends/indigen/__main__.py,sha256=-pfio-Y4Ogbk6lBFksH-gRatp-N6sZ7wuNc-i
47
47
  xoscar/backends/indigen/backend.py,sha256=znl_fZzWGEtLH8hZ9j9Kkf0fva25jEem2_KO7I1RVvc,1612
48
48
  xoscar/backends/indigen/driver.py,sha256=VGzkacYKykegW5qhCuhx01gdgBZEKJjNIyfNCnA6Nm8,952
49
49
  xoscar/backends/indigen/fate_sharing.py,sha256=3QUHwq5Cjk9oCKFUISvkqHaoxWZIaXcq8JNOetdBl-A,8655
50
- xoscar/backends/indigen/pool.py,sha256=7-a_T2D_gG9MhhfkaNj2QGy7FjK06n2xwyD9Tw-rfqc,15732
50
+ xoscar/backends/indigen/pool.py,sha256=uL-tL9uG7HdXIJ8usQOauiqvr2_a0ztMVB2FnLzjdnM,16173
51
51
  xoscar/backends/indigen/shared_memory.py,sha256=wqbckbgnd0qNm5KzlP_hklF3F_n8fKnCehSox5uMwNs,19082
52
52
  xoscar/backends/test/__init__.py,sha256=j2ZfD6prD9WjUxRUDC7Eq5Z7N7TkL6fFr59oNyc_vY4,682
53
53
  xoscar/backends/test/backend.py,sha256=nv9WFhH5Bbq4Q1HB9yfpciZBaeHT4IQAtzugBWESrUY,1263
@@ -79,8 +79,8 @@ xoscar/serialization/pyfury.py,sha256=sifOnVMYoS82PzZEkzkfxesmMHei23k5UAUUKUyoOY
79
79
  xoscar/serialization/scipy.py,sha256=yOEi0NB8cqQ6e2UnCZ1w006RsB7T725tIL-DM_hNcsU,2482
80
80
  xoscar/virtualenv/__init__.py,sha256=65t9_X1DvbanNjFy366SiiWZrRTpa9SXWMXPmqayE-4,1117
81
81
  xoscar/virtualenv/core.py,sha256=dZqwg2IzHsLEERvohZx0rvBINopMRUImqxG3HHGO0q4,2744
82
- xoscar/virtualenv/uv.py,sha256=5mmE-7eeEB2zBJHdktTDvawHG9jIvKfifhJ5Wa0YmMI,3964
83
- xoscar-0.7.3.dist-info/METADATA,sha256=YW_Z9Lp7sSYz75-skFu6UzYiZM0ufBHiCiq5lDN6B6Y,9134
84
- xoscar-0.7.3.dist-info/WHEEL,sha256=OyU_a3_0g4nHrDfscT3ntE6UTOgLWum2-dKsAfzpQqc,150
85
- xoscar-0.7.3.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
86
- xoscar-0.7.3.dist-info/RECORD,,
82
+ xoscar/virtualenv/uv.py,sha256=mR4gevfB8eFMmSLfvOYM-QhyqWyDsqO-V4bkRuhOOWA,4145
83
+ xoscar-0.7.5.dist-info/METADATA,sha256=cdE3xpdI75n6WsPnGYXmOkfeC4xVHaBTkcs4at4ZVVM,9134
84
+ xoscar-0.7.5.dist-info/WHEEL,sha256=OyU_a3_0g4nHrDfscT3ntE6UTOgLWum2-dKsAfzpQqc,150
85
+ xoscar-0.7.5.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
86
+ xoscar-0.7.5.dist-info/RECORD,,
File without changes