xoscar 0.7.2__cp311-cp311-win_amd64.whl → 0.7.3__cp311-cp311-win_amd64.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.
- xoscar/_utils.cp311-win_amd64.pyd +0 -0
- xoscar/backends/message.cp311-win_amd64.pyd +0 -0
- xoscar/collective/uv.dll +0 -0
- xoscar/collective/xoscar_pygloo.cp311-win_amd64.pyd +0 -0
- xoscar/context.cp311-win_amd64.pyd +0 -0
- xoscar/core.cp311-win_amd64.pyd +0 -0
- xoscar/serialization/core.cp311-win_amd64.pyd +0 -0
- xoscar/virtualenv/uv.py +20 -2
- {xoscar-0.7.2.dist-info → xoscar-0.7.3.dist-info}/METADATA +1 -1
- {xoscar-0.7.2.dist-info → xoscar-0.7.3.dist-info}/RECORD +12 -12
- {xoscar-0.7.2.dist-info → xoscar-0.7.3.dist-info}/WHEEL +0 -0
- {xoscar-0.7.2.dist-info → xoscar-0.7.3.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
xoscar/collective/uv.dll
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
xoscar/core.cp311-win_amd64.pyd
CHANGED
|
Binary file
|
|
Binary file
|
xoscar/virtualenv/uv.py
CHANGED
|
@@ -14,14 +14,22 @@
|
|
|
14
14
|
|
|
15
15
|
from __future__ import annotations
|
|
16
16
|
|
|
17
|
+
import os
|
|
17
18
|
import shutil
|
|
18
19
|
import subprocess
|
|
20
|
+
import sys
|
|
19
21
|
import sysconfig
|
|
20
22
|
from pathlib import Path
|
|
21
23
|
from typing import Optional
|
|
22
24
|
|
|
23
25
|
from .core import VirtualEnvManager
|
|
24
26
|
|
|
27
|
+
UV_PATH = os.getenv("XOSCAR_UV_PATH")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _is_in_pyinstaller():
|
|
31
|
+
return hasattr(sys, "_MEIPASS")
|
|
32
|
+
|
|
25
33
|
|
|
26
34
|
class UVVirtualEnvManager(VirtualEnvManager):
|
|
27
35
|
def __init__(self, env_path: Path):
|
|
@@ -30,12 +38,21 @@ class UVVirtualEnvManager(VirtualEnvManager):
|
|
|
30
38
|
|
|
31
39
|
@classmethod
|
|
32
40
|
def is_available(cls):
|
|
41
|
+
if UV_PATH is not None:
|
|
42
|
+
# user specified uv, just treat it as existed
|
|
43
|
+
return True
|
|
33
44
|
return shutil.which("uv") is not None
|
|
34
45
|
|
|
35
46
|
def create_env(self, python_path: Path | None = None) -> None:
|
|
36
|
-
|
|
47
|
+
uv_path = UV_PATH or "uv"
|
|
48
|
+
cmd = [uv_path, "venv", str(self.env_path), "--system-site-packages"]
|
|
37
49
|
if python_path:
|
|
38
50
|
cmd += ["--python", str(python_path)]
|
|
51
|
+
elif _is_in_pyinstaller():
|
|
52
|
+
# in pyinstaller, uv would find the system python
|
|
53
|
+
# in this case we'd better specify the same python version
|
|
54
|
+
python_version = f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}"
|
|
55
|
+
cmd += ["--python", python_version]
|
|
39
56
|
subprocess.run(cmd, check=True)
|
|
40
57
|
|
|
41
58
|
def install_packages(self, packages: list[str], **kwargs):
|
|
@@ -50,7 +67,8 @@ class UVVirtualEnvManager(VirtualEnvManager):
|
|
|
50
67
|
# maybe replace #system_torch# to the real version
|
|
51
68
|
packages = self.process_packages(packages)
|
|
52
69
|
|
|
53
|
-
|
|
70
|
+
uv_path = UV_PATH or "uv"
|
|
71
|
+
cmd = [uv_path, "pip", "install", "-p", str(self.env_path)] + packages
|
|
54
72
|
|
|
55
73
|
# Handle known pip-related kwargs
|
|
56
74
|
if "index_url" in kwargs and kwargs["index_url"]:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
xoscar/__init__.py,sha256=lzCXUmkuIjcjkiNQFekysdJR_ZhlbjcfR5ka1bZZNQg,1683
|
|
2
|
-
xoscar/_utils.cp311-win_amd64.pyd,sha256=
|
|
2
|
+
xoscar/_utils.cp311-win_amd64.pyd,sha256=aU657zwnmj1vxoqqhFhoMwIiyHndBepcdpttZ7gRvec,106496
|
|
3
3
|
xoscar/_utils.pxd,sha256=rlNbTg5lhXA-jCOLksqF4jhUlNn0xw2jx1HxdLa34pc,1193
|
|
4
4
|
xoscar/_utils.pyx,sha256=TWScgqmJGYzjbWBOShBLkq07ldfYEQ5fw6V4OytX_IA,7626
|
|
5
5
|
xoscar/_version.py,sha256=bsfCVAo_o9LkiP3AjPsP4SRRqhjuS0t4D1WGJPzbdls,24412
|
|
@@ -7,10 +7,10 @@ xoscar/api.py,sha256=QQDHn-_FiDExmOxEk8BUnq4Qrx13VX3shSlEEqPQJo0,15175
|
|
|
7
7
|
xoscar/backend.py,sha256=8G5JwjoOT6Q2slb11eXNApxgcmvNQUCdQzkoIMDwLcQ,1917
|
|
8
8
|
xoscar/batch.py,sha256=Jk5BSpvMFAV9DrRy0a9tgPvIo_dt8cbJReZBL0cnOPc,8128
|
|
9
9
|
xoscar/constants.py,sha256=GJ1KEOxwnqksc9K_GH42TSWpQECeC6ti3KJmE3PUcTw,810
|
|
10
|
-
xoscar/context.cp311-win_amd64.pyd,sha256=
|
|
10
|
+
xoscar/context.cp311-win_amd64.pyd,sha256=b8i1TcsY6LGQPzso_RKPpNu63s083iHA2MeIz7LJT40,151552
|
|
11
11
|
xoscar/context.pxd,sha256=6n6IAbmArSRq8EjcsbS6npW8xP1jI0qOoS1fF0oyj-o,746
|
|
12
12
|
xoscar/context.pyx,sha256=FOJVerGOvxe2USryXEQA0rpaFX_ScxISH6QWKUcahY8,11310
|
|
13
|
-
xoscar/core.cp311-win_amd64.pyd,sha256=
|
|
13
|
+
xoscar/core.cp311-win_amd64.pyd,sha256=YANGw3tSnDO75k63dSQFIqPHYlXZdwJmXeLw8f1i4pY,302592
|
|
14
14
|
xoscar/core.pxd,sha256=9IZP7dYGfnF1I-obIls8R8b6forxDOPbiM3v5nVslLk,1368
|
|
15
15
|
xoscar/core.pyx,sha256=U6jCZN74MQHi7HkQRaVGm_w5q-FMsw0nnE3aU6533_Q,22756
|
|
16
16
|
xoscar/debug.py,sha256=hrmxIH6zvTKasQo6PUUgXu5mgEsR0g87Fvpw7CoHipg,5257
|
|
@@ -30,7 +30,7 @@ xoscar/backends/allocate_strategy.py,sha256=DzvTlixwzTANURI2mDLHm3vcaugSPDxU6UQZ
|
|
|
30
30
|
xoscar/backends/config.py,sha256=86j0g_Xrl8ENPzBWi296yWg9QEcljvdKK-yJbfYTvQ0,5532
|
|
31
31
|
xoscar/backends/context.py,sha256=qWwksx8JxYcKR-LQA3PvXh4ReuuTTEyDaLbjpxGXcTA,16766
|
|
32
32
|
xoscar/backends/core.py,sha256=fbekAxys_t1Dv7if-1R6uVvC_yAxNkXLeQ1V1ZSAfC0,11161
|
|
33
|
-
xoscar/backends/message.cp311-win_amd64.pyd,sha256=
|
|
33
|
+
xoscar/backends/message.cp311-win_amd64.pyd,sha256=zq_2B6jZFg7nNMvb1-0EK1zoraXv4iHqiseH1Rsulgs,246784
|
|
34
34
|
xoscar/backends/message.pyx,sha256=lBEjMJv4VyxmeO9lHXJJazOajbFnTLak4PSBcLoPZvU,20331
|
|
35
35
|
xoscar/backends/pool.py,sha256=bS_m8XBkfQQsCOaLEzM6HkV5e78dPPp1bCH6yjvPEss,62153
|
|
36
36
|
xoscar/backends/router.py,sha256=EjfNpQUrhFU15eYe1kRPueziHgI2gfDViUzm7ruvXDE,10817
|
|
@@ -57,8 +57,8 @@ xoscar/collective/common.py,sha256=9c7xq3IOUvfA0I9GnpalUqXZOzmF6IEILv4zL64BYVE,3
|
|
|
57
57
|
xoscar/collective/core.py,sha256=191aPxbUgWpjzrqyozndImDAQhZFmqoQdBkHFLDfXN0,24239
|
|
58
58
|
xoscar/collective/process_group.py,sha256=kTPbrLMJSGhqbiWvTIiz-X3W0rZWd_CFn_zUIlXbOlM,23286
|
|
59
59
|
xoscar/collective/utils.py,sha256=p3WEVtXvnVhkuO5mRgQBhBRFr1dKHcDKMjrbMyuiyfg,1219
|
|
60
|
-
xoscar/collective/uv.dll,sha256=
|
|
61
|
-
xoscar/collective/xoscar_pygloo.cp311-win_amd64.pyd,sha256=
|
|
60
|
+
xoscar/collective/uv.dll,sha256=X9DxZyxFmcQtDla4FBUH2WPpiG3cIrjMpt-xJMK_ed8,620544
|
|
61
|
+
xoscar/collective/xoscar_pygloo.cp311-win_amd64.pyd,sha256=R6Hk5LM4gszPyrSmJ4TDBxXzi7McWfP9CJ99Ms8frwc,831488
|
|
62
62
|
xoscar/metrics/__init__.py,sha256=RjXuuYw4I2YYgD8UY2Z5yCZk0Z56xMJ1n40O80Dtxf8,726
|
|
63
63
|
xoscar/metrics/api.py,sha256=dtJ4QrIqQNXhJedeqOPs4TXKgrRGZFFN50xAd9SCfec,9144
|
|
64
64
|
xoscar/metrics/backends/__init__.py,sha256=ZHepfhCDRuK9yz4pAM7bjpWDvS3Ijp1YgyynoUFLeuU,594
|
|
@@ -69,7 +69,7 @@ xoscar/metrics/backends/prometheus/__init__.py,sha256=ZHepfhCDRuK9yz4pAM7bjpWDvS
|
|
|
69
69
|
xoscar/metrics/backends/prometheus/prometheus_metric.py,sha256=65hb8O3tmsEJ7jgOrIwl_suj9SE5Tmqcfjuk0urkLvE,2120
|
|
70
70
|
xoscar/serialization/__init__.py,sha256=tS8C49yrW_geWNEsbgW3phK1q4YN1ojI6CN-vroIFYM,876
|
|
71
71
|
xoscar/serialization/aio.py,sha256=7YLXgkWpQ3ANy-TZ1qO8Mt4_J3cZFhFh2FEgUgxMT60,4873
|
|
72
|
-
xoscar/serialization/core.cp311-win_amd64.pyd,sha256=
|
|
72
|
+
xoscar/serialization/core.cp311-win_amd64.pyd,sha256=6c-jAqndm4lL3yt0hX2tQWeS181tpA_31WfpFl-r7ms,267264
|
|
73
73
|
xoscar/serialization/core.pxd,sha256=X-47bqBM2Kzw5SkLqICdKD0gU6CpmLsBxC3kfW--wVk,1013
|
|
74
74
|
xoscar/serialization/core.pyx,sha256=ZKexLRnRwZXXn2045kR7xfM_szcoPNrDuouQCWtpFp8,30570
|
|
75
75
|
xoscar/serialization/cuda.py,sha256=Fj4Cpr_YmkGceUCo0mQn8fRvmHP_5WcLdRx6epZ3RC0,3869
|
|
@@ -80,8 +80,8 @@ xoscar/serialization/pyfury.py,sha256=3ucal29Hr7PX9_1SfB2x43FE2xw_C0rLkVv3foL7qw
|
|
|
80
80
|
xoscar/serialization/scipy.py,sha256=9ph-yoRoNiwUZTwQrn35U60VPirWlncXNAg6EXvqMR4,2554
|
|
81
81
|
xoscar/virtualenv/__init__.py,sha256=rhJ7I6x7aXjKOCzSqsKLwqFJMh4YC2sqchEIJNEfI58,1151
|
|
82
82
|
xoscar/virtualenv/core.py,sha256=ygnDO6QA3gXoT-uiME8Cn-ET_PtwCUxy1i8uCOd9J7Q,2834
|
|
83
|
-
xoscar/virtualenv/uv.py,sha256=
|
|
84
|
-
xoscar-0.7.
|
|
85
|
-
xoscar-0.7.
|
|
86
|
-
xoscar-0.7.
|
|
87
|
-
xoscar-0.7.
|
|
83
|
+
xoscar/virtualenv/uv.py,sha256=DI89Cmn_fphUv9rpCmi-gjyRoND0Nz8tGCYFSzXTlvs,4077
|
|
84
|
+
xoscar-0.7.3.dist-info/METADATA,sha256=o0fuGB5lltrjc2Ls0fvWNmUeW7Dym_kjUJ8zRbF-YGA,9360
|
|
85
|
+
xoscar-0.7.3.dist-info/WHEEL,sha256=y4n9_669c4ZQLyT56MHjc_JUbnwtaZfMVMycweN557o,102
|
|
86
|
+
xoscar-0.7.3.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
|
|
87
|
+
xoscar-0.7.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|