[+] improve venv:compile

This commit is contained in:
Siarhei Siniak 2025-05-16 16:58:23 +03:00
parent 8c07cea8b7
commit c6b2b62ba4
3 changed files with 14 additions and 6 deletions

@ -5,7 +5,7 @@ project(
).stdout().strip('\n'), ).stdout().strip('\n'),
# 'online.fxreader.uv', # 'online.fxreader.uv',
# ['c', 'cpp'], # ['c', 'cpp'],
version: '0.1.5.16+27.17', version: '0.1.5.16+27.18',
# default_options: [ # default_options: [
# 'cpp_std=c++23', # 'cpp_std=c++23',
# # 'prefer_static=true', # # 'prefer_static=true',

@ -605,8 +605,8 @@ class CLI(abc.ABC):
f.flush() f.flush()
if len(dependencies) > 0: if len(dependencies) > 0:
subprocess.check_call([ cmd = [
self.dist_settings.python_path, str(self.dist_settings.python_path),
'-m', '-m',
'uv', 'pip', 'compile', 'uv', 'pip', 'compile',
*args, *args,
@ -615,10 +615,15 @@ class CLI(abc.ABC):
for o in pip_find_links for o in pip_find_links
], []), ], []),
'--generate-hashes', '--generate-hashes',
requirements_name_get_res.not_compiled, str(requirements_name_get_res.not_compiled),
'-o', '-o',
requirements_name_get_res.compiled, str(requirements_name_get_res.compiled),
]) ]
logger.info(dict(
cmd=cmd,
))
subprocess.check_call(cmd)
def module_switch( def module_switch(
self, self,

Binary file not shown.