未验证 提交 da6e33cf 编写于 作者: Q qingqing01 提交者: GitHub

Simplify third_party path in Python package (#20776) (#20916)

* Simplify third_party path in Python package
* Fix typo
上级 416b3417
......@@ -328,9 +328,14 @@ class InstallHeaders(Command):
else:
# third_party
install_dir = re.sub('${THIRD_PARTY_PATH}', 'third_party', header)
install_dir = re.sub('src/extern_eigen3/', '', install_dir)
install_dir = re.sub('src/extern_boost/', '', install_dir)
install_dir = re.sub('src/extern_dlpack/', '', install_dir)
patterns = ['eigen3/src/extern_eigen3', 'boost/src/extern_boost',
'dlpack/src/extern_dlpack/include',
'install/protobuf/include',
'install/gflags/include',
'install/glog/include', 'install/xxhash/include',
'threadpool/src/extern_threadpool']
for pattern in patterns:
install_dir = re.sub(pattern, '', install_dir)
install_dir = os.path.join(self.install_dir, os.path.dirname(install_dir))
if not os.path.exists(install_dir):
self.mkpath(install_dir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册