• Home
  • Raw
  • Download

Lines Matching refs:code_dir

48 def _check_sha256_by_mark(args, check_url: str, code_dir: str, unzip_dir: str, unzip_filename: str)…
51 mark_file_dir = os.path.join(code_dir, unzip_dir)
79 def _uncompress(args, src_file: str, code_dir: str, unzip_dir: str, unzip_filename: str, mark_file_…
80 dest_dir = os.path.join(code_dir, unzip_dir)
90 def _copy_url(args, task_id: int, url: str, local_file: str, code_dir: str, unzip_dir: str,
114 _uncompress(args, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path)
126 def _copy_url_disable_rich(args, url: str, local_file: str, code_dir: str, unzip_dir: str,
142 _uncompress(args, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path)
152 def _hwcloud_download(args, config: dict, bin_dir: str, code_dir: str):
166 abs_unzip_dir = os.path.join(code_dir, unzip_dir)
169 if _check_sha256_by_mark(args, huaweicloud_url, code_dir, unzip_dir, unzip_filename):
175 _run_cmd(('rm -rf {}/{}/*.{}.mark').format(code_dir, unzip_dir, unzip_filename))
176 _run_cmd(('rm -rf {}/{}/{}').format(code_dir, unzip_dir, unzip_filename))
184 task = pool.submit(_uncompress, args, local_file, code_dir,
193 … task = pool.submit(_copy_url, args, task_id, huaweicloud_url, local_file, code_dir,
197 … task = pool.submit(_copy_url_disable_rich, args, huaweicloud_url, local_file, code_dir,
209 os.environ['PATH'] = '{}/{}:{}'.format(args.code_dir, node_path, os.environ.get('PATH'))
210 npm = os.path.join(args.code_dir, node_path, 'npm')
220 full_code_path = os.path.join(args.code_dir, install_info)
238 def _node_modules_copy(config: dict, code_dir: str, enable_symlink: bool):
240 src_dir = os.path.join(code_dir, config_info.get('src'))
241 dest_dir = os.path.join(code_dir, config_info.get('dest'))
251 def _file_handle(config: dict, code_dir: str, host_platform: str):
253 src_dir = code_dir + config_info.get('src')
254 dest_dir = code_dir + config_info.get('dest')
261 tmp_dir = code_dir + tmp_dir
297 def _install(config: dict, code_dir: str):
299 install_dir = '{}/{}'.format(code_dir, config_info.get('install_dir'))
306 dest_dir = '{}/{}'.format(code_dir, config_info.get('destdir'))
324 args.code_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
332 config_file = os.path.join(args.code_dir, 'build_plugins/prebuilts_download_config.json')
336 config_file = os.path.join(args.code_dir, 'build/prebuilts_download_config.json')
346 args.bin_dir = os.path.join(args.code_dir, config_info.get('prebuilts_download_dir'))
360 _hwcloud_download(args, copy_config, args.bin_dir, args.code_dir)
364 _hwcloud_download(args, copy_config, args.bin_dir, args.code_dir)
367 _file_handle(file_handle_config, args.code_dir, args.host_platform)
383 _node_modules_copy(node_modules_copy_config, args.code_dir, args.enable_symlink)
385 _install(install_config, args.code_dir)