[aur-general] Issue python PKGBUILD

Eli Schwartz eschwartz at archlinux.org
Thu Feb 6 23:23:29 UTC 2020


On 2/6/20 6:10 PM, Iyán Méndez Veiga wrote:
> Hi,
> 
> After a new release of a python module, I'm facing an issue to update the 
> PKGBUILD. I get a permission error in the package() section:
> 
> Traceback (most recent call last):
>   File "setup.py", line 52, in <module>
>     setup(
>   File "/usr/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 
> 639, in setup
>     _copy_file(data_file, dest_data_file, hide_listing)
>   File "/usr/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 
> 828, in _copy_file
>     copyfile(src_file, dest_file)
>   File "/usr/lib/python3.8/shutil.py", line 259, in copyfile
>     with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
> PermissionError: [Errno 13] Permission denied: '_skbuild/linux-x86_64-3.8/
> cmake-install/src/third-party/headers/muparserx/.git/objects/pack/pack-
> bcece967ee9ec3297e6c8709d2c6d670ad7e3af2.idx'
> 
> However, if I execute python setup.py install --root="test-install" --
> optimize=1 --skip-build manually I cannot replicate the error.
> 
> Is there any difference between when makepkg executes that command and when I 
> do it myself?

Well, makepkg runs under fakeroot.

But forget about that. Why is setup.py install attempting to install the
.git/ directory of a git repository?

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20200206/f45b7b27/attachment.sig>


More information about the aur-general mailing list