Fixed the dynamic library linking
[nil.git] / install.py
blob767875e9cab4f1c9e4044c86d9984728b4b5bedc
1 import sys, os, subprocess
2 import nil.environment, nil.setup
4 python_version = '2.6'
6 package = 'nil'
8 nil.environment.unix_like()
10 if not nil.setup.has_command(['/usr/bin/python%s' % python_version, '-V']):
11 print 'Unable to detect Python %s.' % python_version
12 sys.exit(1)
14 path = os.path.join(os.path.dirname(nil.environment.get_script_path()), package)
15 link_name = '/usr/local/lib/python2.6/dist-packages/%s' % package
17 nil.setup.symlink(path, link_name)