ominfra 0.0.0.dev280__py3-none-any.whl → 0.0.0.dev282__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/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
- DEFAULT_PYENV_INSTALL_OPTS = PyenvInstallOpts(
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 = [self._given_opts if self._given_opts is not None else DEFAULT_PYENV_INSTALL_OPTS]
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ominfra
3
- Version: 0.0.0.dev280
3
+ Version: 0.0.0.dev282
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.dev280
16
- Requires-Dist: omlish==0.0.0.dev280
15
+ Requires-Dist: omdev==0.0.0.dev282
16
+ Requires-Dist: omlish==0.0.0.dev282
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.20; extra == "all"
@@ -113,7 +113,7 @@ 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=OlfubrtGmXWAyUOO6eHOj-k4XmfDPrngdKTLlm6yLZA,380865
116
+ ominfra/scripts/manage.py,sha256=uOt6cOXKvMWfmNkc2niBN-tL4f1A6Xjo2UXZf_hBOLU,381393
117
117
  ominfra/scripts/supervisor.py,sha256=9fEgMFPZMRGk7uBVdywzR_E5Y6_xTxUw3zUs_SCu17o,299748
118
118
  ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
119
119
  ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
@@ -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.dev280.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
- ominfra-0.0.0.dev280.dist-info/METADATA,sha256=akEOLkrskxQgRRfZC9kob-3yKxehNQPoR4pPjrxvceA,753
161
- ominfra-0.0.0.dev280.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
162
- ominfra-0.0.0.dev280.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
- ominfra-0.0.0.dev280.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
- ominfra-0.0.0.dev280.dist-info/RECORD,,
159
+ ominfra-0.0.0.dev282.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
+ ominfra-0.0.0.dev282.dist-info/METADATA,sha256=1C2YIDeqdlTvoFSYFM2InRaoS5iXE9nV4b7rdr0bNqI,753
161
+ ominfra-0.0.0.dev282.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
162
+ ominfra-0.0.0.dev282.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
+ ominfra-0.0.0.dev282.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
+ ominfra-0.0.0.dev282.dist-info/RECORD,,