ominfra 0.0.0.dev281__py3-none-any.whl → 0.0.0.dev283__py3-none-any.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.
- ominfra/clouds/aws/instancetypes/cache.json.gz +0 -0
- ominfra/scripts/manage.py +27 -5
- ominfra/scripts/supervisor.py +1 -1
- ominfra/supervisor/spawningimpl.py +5 -5
- {ominfra-0.0.0.dev281.dist-info → ominfra-0.0.0.dev283.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev281.dist-info → ominfra-0.0.0.dev283.dist-info}/RECORD +11 -11
- /ominfra/supervisor/{exceptions.py → errors.py} +0 -0
- {ominfra-0.0.0.dev281.dist-info → ominfra-0.0.0.dev283.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev281.dist-info → ominfra-0.0.0.dev283.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev281.dist-info → ominfra-0.0.0.dev283.dist-info}/licenses/LICENSE +0 -0
- {ominfra-0.0.0.dev281.dist-info → ominfra-0.0.0.dev283.dist-info}/top_level.txt +0 -0
Binary file
|
ominfra/scripts/manage.py
CHANGED
@@ -11899,16 +11899,13 @@ class PyenvInstallOpts:
|
|
11899
11899
|
|
11900
11900
|
|
11901
11901
|
# TODO: https://github.com/pyenv/pyenv/blob/master/plugins/python-build/README.md#building-for-maximum-performance
|
11902
|
-
|
11902
|
+
_DEFAULT_PYENV_INSTALL_OPTS = PyenvInstallOpts(
|
11903
11903
|
opts=[
|
11904
11904
|
'-s',
|
11905
11905
|
'-v',
|
11906
11906
|
'-k',
|
11907
11907
|
],
|
11908
11908
|
conf_opts=[
|
11909
|
-
# FIXME: breaks on mac for older py's
|
11910
|
-
'--enable-loadable-sqlite-extensions',
|
11911
|
-
|
11912
11909
|
# '--enable-shared',
|
11913
11910
|
|
11914
11911
|
'--enable-optimizations',
|
@@ -11924,6 +11921,27 @@ DEFAULT_PYENV_INSTALL_OPTS = PyenvInstallOpts(
|
|
11924
11921
|
],
|
11925
11922
|
)
|
11926
11923
|
|
11924
|
+
|
11925
|
+
def get_default_pyenv_install_opts(
|
11926
|
+
version: str,
|
11927
|
+
*,
|
11928
|
+
platform: ta.Optional[str] = None,
|
11929
|
+
) -> PyenvInstallOpts:
|
11930
|
+
if platform is None:
|
11931
|
+
platform = sys.platform
|
11932
|
+
|
11933
|
+
opts = _DEFAULT_PYENV_INSTALL_OPTS
|
11934
|
+
|
11935
|
+
ma, mi = map(int, version.split('.')[:2])
|
11936
|
+
if not (platform == 'darwin' and (ma, mi) < (3, 11)):
|
11937
|
+
opts = dc.replace(opts, conf_opts=[
|
11938
|
+
*opts.conf_opts,
|
11939
|
+
'--enable-loadable-sqlite-extensions',
|
11940
|
+
])
|
11941
|
+
|
11942
|
+
return opts
|
11943
|
+
|
11944
|
+
|
11927
11945
|
DEBUG_PYENV_INSTALL_OPTS = PyenvInstallOpts(opts=['-g'])
|
11928
11946
|
|
11929
11947
|
THREADED_PYENV_INSTALL_OPTS = PyenvInstallOpts(conf_opts=['--disable-gil'])
|
@@ -12049,7 +12067,11 @@ class PyenvVersionInstaller:
|
|
12049
12067
|
if opts is None:
|
12050
12068
|
opts = PyenvInstallOpts()
|
12051
12069
|
else:
|
12052
|
-
lst = [
|
12070
|
+
lst: ta.List[PyenvInstallOpts] = []
|
12071
|
+
if self._given_opts is not None:
|
12072
|
+
lst.append(self._given_opts)
|
12073
|
+
else:
|
12074
|
+
lst.append(get_default_pyenv_install_opts(self._version))
|
12053
12075
|
if self._interp_opts.debug:
|
12054
12076
|
lst.append(DEBUG_PYENV_INSTALL_OPTS)
|
12055
12077
|
if self._interp_opts.threaded:
|
ominfra/scripts/supervisor.py
CHANGED
@@ -12,14 +12,14 @@ from omlish.lite.typing import Func3
|
|
12
12
|
from .configs import ProcessConfig
|
13
13
|
from .configs import ServerConfig
|
14
14
|
from .dispatchers import Dispatchers
|
15
|
+
from .errors import BadCommandError
|
16
|
+
from .errors import NoPermissionError
|
17
|
+
from .errors import NotExecutableError
|
18
|
+
from .errors import NotFoundError
|
19
|
+
from .errors import ProcessError
|
15
20
|
from .events import ProcessCommunicationEvent
|
16
21
|
from .events import ProcessCommunicationStderrEvent
|
17
22
|
from .events import ProcessCommunicationStdoutEvent
|
18
|
-
from .exceptions import BadCommandError
|
19
|
-
from .exceptions import NoPermissionError
|
20
|
-
from .exceptions import NotExecutableError
|
21
|
-
from .exceptions import NotFoundError
|
22
|
-
from .exceptions import ProcessError
|
23
23
|
from .pipes import ProcessPipes
|
24
24
|
from .pipes import close_child_pipes
|
25
25
|
from .pipes import close_pipes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev283
|
4
4
|
Summary: ominfra
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,8 +12,8 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Operating System :: POSIX
|
13
13
|
Requires-Python: >=3.12
|
14
14
|
License-File: LICENSE
|
15
|
-
Requires-Dist: omdev==0.0.0.
|
16
|
-
Requires-Dist: omlish==0.0.0.
|
15
|
+
Requires-Dist: omdev==0.0.0.dev283
|
16
|
+
Requires-Dist: omlish==0.0.0.dev283
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.20; extra == "all"
|
@@ -14,7 +14,7 @@ ominfra/clouds/aws/logs.py,sha256=SvOMv5FeRFhxneIyMXCeieyLFpi6byHUsHwOAhFvT0U,54
|
|
14
14
|
ominfra/clouds/aws/metadata.py,sha256=XR1BuMdQheyeFjjA3MN8GCNWVAp5ahoPdbWXEmViutQ,2767
|
15
15
|
ominfra/clouds/aws/instancetypes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
ominfra/clouds/aws/instancetypes/__main__.py,sha256=Jsrv3P7LX2Cg08W7ByZfZ1JQT4lgLDPW1qNAmShFuMk,75
|
17
|
-
ominfra/clouds/aws/instancetypes/cache.json.gz,sha256=
|
17
|
+
ominfra/clouds/aws/instancetypes/cache.json.gz,sha256=27o2kaDNEhaA7quLT-G4oTLOfsVJ5vr80UK6fcic5Lo,27625
|
18
18
|
ominfra/clouds/aws/instancetypes/cache.py,sha256=CrfBzOb0DqQhf3ahQS6qQHHH1kVgZyniYOl22RTvjwo,333
|
19
19
|
ominfra/clouds/aws/instancetypes/cli.py,sha256=WC0SWkdw9F0CJVnxcedPIYccYsczKjMKdeW5yPbfc8Y,2200
|
20
20
|
ominfra/clouds/aws/journald2aws/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
@@ -113,16 +113,16 @@ ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhh
|
|
113
113
|
ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
|
114
114
|
ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
115
|
ominfra/scripts/journald2aws.py,sha256=IgF4hmmjQv_bVEETNci4k6mtGRWuiGeW90mvWl14BAI,171170
|
116
|
-
ominfra/scripts/manage.py,sha256=
|
117
|
-
ominfra/scripts/supervisor.py,sha256=
|
116
|
+
ominfra/scripts/manage.py,sha256=uOt6cOXKvMWfmNkc2niBN-tL4f1A6Xjo2UXZf_hBOLU,381393
|
117
|
+
ominfra/scripts/supervisor.py,sha256=6HQRQE8CGVXZKUhs9ZcOUSS6sLdgAfSxl0qs5fdxaJ4,299744
|
118
118
|
ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
|
119
119
|
ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
120
120
|
ominfra/supervisor/__main__.py,sha256=I0yFw-C08OOiZ3BF6lF1Oiv789EQXu-_j6whDhQUTEA,66
|
121
121
|
ominfra/supervisor/configs.py,sha256=zpNZmei-Ajild6WNIGnxsPMGbGBFzr0K81L_gR0vBIA,13847
|
122
122
|
ominfra/supervisor/dispatchers.py,sha256=zXLwQS4Vc6dWw5o9QOL04UMDt7w6CKu9wf19CjUiS2Q,1005
|
123
123
|
ominfra/supervisor/dispatchersimpl.py,sha256=q3dEyOHWTPKm28nmAGisjgIW1BX6O3-SzbYa7nWuTEs,11349
|
124
|
+
ominfra/supervisor/errors.py,sha256=Qbu211H3CLlSmi9LsSikOwrcL5HgJP9ugvcKWlGTAoI,750
|
124
125
|
ominfra/supervisor/events.py,sha256=XGrtzHr1xm0dwjz329fn9eR0_Ap-LQL6Sk8LJ8eVDEo,6692
|
125
|
-
ominfra/supervisor/exceptions.py,sha256=Qbu211H3CLlSmi9LsSikOwrcL5HgJP9ugvcKWlGTAoI,750
|
126
126
|
ominfra/supervisor/groups.py,sha256=MBbsbt8Zh_WEYkGOr1KXa82gnPVw9wPB2lAnqhugXSc,2457
|
127
127
|
ominfra/supervisor/groupsimpl.py,sha256=PCDyc_Wc-pnvIj56_aEyiA5exCpK6n9iErqnJzO2rZk,2281
|
128
128
|
ominfra/supervisor/http.py,sha256=LxhF-C7VyZ8WxzjhrHSLU9rCo26OF81IgZzvqSaCYtk,3449
|
@@ -137,7 +137,7 @@ ominfra/supervisor/setup.py,sha256=7HwwwI-WT_Z0WjZ9_l5Orr4K298nKKhQ1f_ZgGsi9TU,6
|
|
137
137
|
ominfra/supervisor/setupimpl.py,sha256=88h3oYsdJ0LAo7sZZZGRQti14oQay3b-0Vd_h3Cl108,9638
|
138
138
|
ominfra/supervisor/signals.py,sha256=jY52naUifcAjd6nICTP1ZW3IQSPsHB4cvbsJo8_QV_U,2196
|
139
139
|
ominfra/supervisor/spawning.py,sha256=i1k3tmqWyU-KIN7kel-JVxTVGnLiTIVmZzlstJSZpjM,622
|
140
|
-
ominfra/supervisor/spawningimpl.py,sha256=
|
140
|
+
ominfra/supervisor/spawningimpl.py,sha256=L293m1mCvR12FYmjATwgb0GgZRRLw-1jlNd8XmkvpUU,11084
|
141
141
|
ominfra/supervisor/states.py,sha256=x1trJQbItkSegOmotpn5YNcZMLbBL8I3GmhvFCQl4Oo,1400
|
142
142
|
ominfra/supervisor/supervisor.py,sha256=XsQrWjMsv0o0CzI5nZoGybeUnSDouc8X7jSLr920_eQ,8169
|
143
143
|
ominfra/supervisor/types.py,sha256=g6C-NuPWMy7pk-kcnT3mO7auLWElZU_4dhzrUaX--TA,4015
|
@@ -156,9 +156,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
|
|
156
156
|
ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
|
157
157
|
ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
158
158
|
ominfra/tools/listresources.py,sha256=auGP1LlbBJSFKUWNvQo_UzA8IsBNZBTMwEkFFRJ4FX4,6185
|
159
|
-
ominfra-0.0.0.
|
160
|
-
ominfra-0.0.0.
|
161
|
-
ominfra-0.0.0.
|
162
|
-
ominfra-0.0.0.
|
163
|
-
ominfra-0.0.0.
|
164
|
-
ominfra-0.0.0.
|
159
|
+
ominfra-0.0.0.dev283.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
160
|
+
ominfra-0.0.0.dev283.dist-info/METADATA,sha256=jGNh_5GmmTMamXGV1LwpGTHVSCGTUTkH9KbmtQjl69s,753
|
161
|
+
ominfra-0.0.0.dev283.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
162
|
+
ominfra-0.0.0.dev283.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
163
|
+
ominfra-0.0.0.dev283.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
164
|
+
ominfra-0.0.0.dev283.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|