Ticket #434 (closed defect: invalid)
Permission denied: '/usr/lib/python2.6/site-packages/M2Crypto/PGP/__init__.pyc'
|Reported by:||htgoebel||Owned by:||htgoebel|
Description (last modified by htgoebel) (diff)
My system (Mandriva 2010) does not install .pyc files for python-m2crypto, only the .py files are there.
When packaging a project requiring one of these modules, PyInstaller? fails with e.g. Permission denied: '/usr/lib/python2.6/site-packages/M2Crypto/PGP/__init__.pyc'. This is correct, since a normal user must not write there. And the real problem is the RPM, which is missing content.
Anyway we need to implement a work-around for such a case.
E.g. the file could be compiled into a temporary file.
This is the place to change:
File "./Build.py", line 289, in assemble py_compile.compile(fnm[:-1])