1 Star 0 Fork 8

s_c_c/distributed-build_lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-feat-Adapt-to-Openeule-remove-useless-code.patch 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
tianhang 提交于 2023-05-30 17:59 . init and add patches for openeuler build
From 3b7265530ad4e6da1773b1e3651a09d621b1ccc9 Mon Sep 17 00:00:00 2001
From: peng_langyuan <[email protected]>
Date: Fri, 19 May 2023 17:26:14 +0800
Subject: [PATCH 3/3] feat : Adapt to openeuler
---
build.py | 9 ---------
hb/__main__.py | 9 ---------
2 files changed, 18 deletions(-)
diff --git a/build.py b/build.py
index a94ad4b..2d7ad8a 100755
--- a/build.py
+++ b/build.py
@@ -25,15 +25,6 @@ import subprocess
def get_python():
hb_main = importlib.import_module("hb.__main__")
topdir = hb_main.find_top()
- index = 0
- while index < len(sys.argv):
- if sys.argv[index] == "-p":
- product_name = sys.argv[index + 1]
- index += 1
- if product_name == "openeuler":
- python_base_dir = "/usr/bin"
- else:
- python_base_dir = os.path.join(topdir, 'prebuilts/python')
python_base_dir = "/usr/bin"
if os.path.exists(python_base_dir):
python_dir = hb_main.search(python_base_dir, 'python3')
diff --git a/hb/__main__.py b/hb/__main__.py
index cf9b7e2..2f3d595 100644
--- a/hb/__main__.py
+++ b/hb/__main__.py
@@ -53,15 +53,6 @@ def main():
topdir = find_top()
except Exception as ex:
return print("hb_error: Please call hb utilities inside source root directory")
- index = 0
- while index < len(sys.argv):
- if sys.argv[index] == "-p":
- product_name = sys.argv[index + 1]
- index += 1
- if product_name == "openeuler":
- python_base_dir = "/usr/bin"
- else:
- python_base_dir = os.path.join(topdir, 'prebuilts/python')
python_base_dir = "/usr/bin"
if os.path.exists(python_base_dir):
python_dir = search(python_base_dir, 'python3')
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/s-c-c/distributed-build_lite.git
[email protected]:s-c-c/distributed-build_lite.git
s-c-c
distributed-build_lite
distributed-build_lite
master

搜索帮助