[+] add pip check conflicts into cli_bootstrap
This commit is contained in:
parent
075b1b6149
commit
7a25882d57
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import glob
|
import glob
|
||||||
|
import json
|
||||||
import io
|
import io
|
||||||
import tempfile
|
import tempfile
|
||||||
import dataclasses
|
import dataclasses
|
||||||
@ -169,6 +170,12 @@ class BootstrapSettings:
|
|||||||
),
|
),
|
||||||
).strip()
|
).strip()
|
||||||
)
|
)
|
||||||
|
pip_check_conflicts: Optional[bool] = dataclasses.field(
|
||||||
|
default_factory=lambda : os.environ.get(
|
||||||
|
'PIP_CHECK_CONFLICTS',
|
||||||
|
json.dumps(True)
|
||||||
|
) in [json.dumps(True)],
|
||||||
|
)
|
||||||
uv_args: list[str] = dataclasses.field(
|
uv_args: list[str] = dataclasses.field(
|
||||||
default_factory=lambda : os.environ.get(
|
default_factory=lambda : os.environ.get(
|
||||||
'UV_ARGS',
|
'UV_ARGS',
|
||||||
@ -309,6 +316,13 @@ def env_bootstrap(
|
|||||||
'-r', str(requirements_path),
|
'-r', str(requirements_path),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if bootstrap_settings.pip_check_conflicts:
|
||||||
|
subprocess.check_call([
|
||||||
|
bootstrap_settings.python_path,
|
||||||
|
'-m',
|
||||||
|
'online.fxreader.pr34.commands',
|
||||||
|
'pip_check_conflicts',
|
||||||
|
])
|
||||||
|
|
||||||
def paths_equal(
|
def paths_equal(
|
||||||
a: pathlib.Path | str,
|
a: pathlib.Path | str,
|
||||||
|
Loading…
Reference in New Issue
Block a user