Providing --root to setup.py like:
package() {
cd "$srcdir"/"$_gitname"
python3 setup.py install --prefix=$pkgdir/usr --root=$pkgdir
}
with the following setup.py file:
import DistUtilsExtra.auto
DistUtilsExtra.auto.setup(
name='alsacontrol',
version='0.1.0',
description='ALSA configuration interface',
license='GPL-3.0',
)
in a PKGBUILD file produces the following error:
warning: directory permissions differ on /mnt/data/
filesystem: 700 package: 755
when makepkg -is
is used.
Here are file permissions with --root and --prefix:
and here without --root and only --prefix:
and here with --root, but without --prefix:
as you can see, combing --root with --prefix does weird stuff.
I kept --root, so that I am able to install files to /etc as well, and removed --prefix in my script:
setup.py:
PKGBUILD: