File: repair_command_linux.sh

package info (click to toggle)
avogadrolibs 1.101.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,500 kB
  • sloc: cpp: 139,792; ansic: 2,212; python: 1,435; perl: 321; sh: 90; makefile: 46
file content (22 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -ev

# FIXME: if the libraries are already inside the wheel, why do we have
# to provide them to auditwheel again? It would be ideal if we could
# avoid this script entirely.

# We have to include the avogadro library in Linux's LD_LIBRARY_PATH,
# or auditwheel won't work. These libraries are already in the wheel.
WHEEL_DIR=/tmp/cibuildwheel/built_wheel
WHEEL_PATH=$(find $WHEEL_DIR -name "*.whl" | xargs readlink -f)

cd $WHEEL_DIR
unzip $WHEEL_PATH

LIBRARY_DIR=$WHEEL_DIR/avogadro

export LD_LIBRARY_PATH=$LIBRARY_DIR:$LD_LIBRARY_PATH

auditwheel repair -w /tmp/cibuildwheel/repaired_wheel $WHEEL_PATH

rm -rf /tmp/cibuildwheel/built_wheel