gdanezis / petlib

A python library that implements a number of Privacy Enhancing Technolgies
BSD 2-Clause "Simplified" License
133 stars 33 forks source link

Petlib cannot be installed systemwide, else it tries to create cache files in /usr/lib/python3.4/site-packages/petlib/... #1

Closed Sidnioulz closed 9 years ago

Sidnioulz commented 9 years ago

Petlib crashes when installed systewide, because it tries to create cache files in /usr/lib/python3.4/site-packages/petlib/... Please ensure that petlib identifies a read-write area to create cache files into, rather than in its install location which should be treated as read-only.

Suggested locations: $XDG_CACHE_HOME/petlib $HOME/.cache/petlib /tmp/petlib

gdanezis commented 9 years ago

Aha. Nice catch -- I did put off taking care of this so far. The issue is that the library C bindings were not compiled at setup / install time, but only when it was first ran. As a result the binaries were placed in a folder that was not writable. I believe the issue should be fixed by importing 'petlib.bindings' in the setup script in the latest commit. However, I am testing a bit more before closing the issue to ensure this takes care of it.

gdanezis commented 9 years ago

Great -- confirmed in person the issue has been fixed. Thanks Steve!

Sidnioulz commented 9 years ago

Thanks for fixing it!