dockcross/manylinux2014-aarch64/xc_script/repair_wheel.sh

21 lines
710 B
Bash
Raw Permalink Normal View History

2021-08-20 14:44:22 +02:00
#!/bin/bash
# AUTHOR: odidev
# DATE: 2021-07-20
# DESCRIPTION: The wheels are cross compiled and we can't be repair in currnet
# environment. So, better to repair in manylinux container. So,
# we need to run BEFORE_ALL again in target manylinux contaner. So,
# instead of running BEFORE_ALL again we can copy the stored files.
# INPUT: $1 --> Dependeicies install path on host machine with respect to
# container
# $2 --> Wheel repair command
install_dir="$1"
for file in `find $install_dir -type f`; do
install_path=$(echo ${file} | sed 's/^.*usr/\/usr/')
install -m 0644 -D ${file} ${install_path}
done
$2