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
signature.asc
Description: OpenPGP digital signature