Yes, that was my thinking as well - something like configure does (autotools) where it will tell you some details after calling it (although in this case the output is after install).

Sounds good!


Mahadev Konar wrote:
I would suggest adding it to the readme no? Modifying /etc files with sudo
access could be dangerous and we might mess up somethings. Would it be good
to add a print statement in the setup saying that you might need to do edit
/etc/ and run /sbin/ldconfig in case of Fedora?
So the users would see the statement after running


On 11/23/09 6:25 PM, "Erik Holstad" <> wrote:

Have been messing around to try to get it included in the script.
But not sure
if it is good to have it there since writing to /usr/ 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/", 'r+')
  content =
  path = "/usr/local/lib"
  if content.find(path) == -1:

except Exception, e:

import subprocess['sudo', '/sbin/ldconfig'])


Reply via email to