Install python modules
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: llvm
|
name: llvm
|
||||||
description: A collection of modular and reusable compiler and toolchain technologies
|
description: A collection of modular and reusable compiler and toolchain technologies
|
||||||
version: 21.1.6
|
version: 21.1.6
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://llvm.org
|
url: https://llvm.org
|
||||||
license: Apache2-with-llvm-exception
|
license: Apache2-with-llvm-exception
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ package_llvm() {
|
|||||||
|
|
||||||
# Move clang files into split package
|
# Move clang files into split package
|
||||||
_pick clang usr/bin/{amdgpu-arch,analyze-build,c-index-test,diagtool,git-clang-format,hmaptool,intercept-build,nvptx-arch,scan-build,scan-build-py,scan-view}
|
_pick clang usr/bin/{amdgpu-arch,analyze-build,c-index-test,diagtool,git-clang-format,hmaptool,intercept-build,nvptx-arch,scan-build,scan-build-py,scan-view}
|
||||||
|
_pick clang usr/lib/{libear,libscanbuild}
|
||||||
_pick clang usr/bin/clang*
|
_pick clang usr/bin/clang*
|
||||||
_pick clang usr/lib/libclang*
|
_pick clang usr/lib/libclang*
|
||||||
_pick clang usr/lib/cmake/clang
|
_pick clang usr/lib/cmake/clang
|
||||||
@@ -92,6 +93,12 @@ package_compiler-rt() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package_clang() {
|
package_clang() {
|
||||||
|
# Move libear and libscanbuild into site-packages and install Python bindings
|
||||||
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
|
install -d "$BPM_OUTPUT"/"$site_packages"
|
||||||
|
mv "$BPM_OUTPUT"/usr/lib/{libear,libscanbuild} -t "$BPM_OUTPUT"/"$site_packages"
|
||||||
|
cp -a "$BPM_SOURCE"/tools/clang/bindings/python/clang "$BPM_OUTPUT"/"$site_packages"
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/clang/LICENSE.TXT
|
install -Dm644 "$BPM_SOURCE"/LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/clang/LICENSE.TXT
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user