Commit 03a78e6e authored by Vitaly Lipatov's avatar Vitaly Lipatov

add repack.d/common.sh: move dist-packages to site-packages for python modules in /usr/lib

parent 376e7ace
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
for i in lib/python3 lib/python2.7 ; do
t=$i
if [ -d $BUILDROOT/usr/$i/dist-packages ] ; then
mv -v $BUILDROOT/usr/$i/dist-packages $BUILDROOT/usr/$t/site-packages
subst "s|/usr/$i/dist-packages|/usr/$t/site-packages|" $SPEC
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment