Have been messing around to try to get it included in the setup.py script.
But not sure
if it is good to have it there since writing to /usr/ld.so.conf and
reloading the /sbin/ldconfig
requires sudo status. But on the other hand that is needed to install from
the beginning.

I could add something like this to the end of the setup file

print "Setting up dependencies"
  f = open("/etc/ld.so.conf", 'r+')
  content = f.read()
  path = "/usr/local/lib"
  if content.find(path) == -1:

except Exception, e:

import subprocess
subprocess.call(['sudo', '/sbin/ldconfig'])


Reply via email to