Change the /etc path to not be absolute

This commit is contained in:
Thomas S Hatch 2011-05-23 19:01:48 -06:00
parent b05f069f07
commit 0f7f896520

View file

@ -3,6 +3,7 @@
The setup script for salt
'''
import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from distutils.sysconfig import get_python_lib, PREFIX
@ -15,6 +16,7 @@ mod_path = os.path.join(get_python_lib(), 'salt/modules/')
doc_path = os.path.join(PREFIX, 'share/doc/', NAME + '-' + VER)
example_path = os.path.join(doc_path, 'examples')
template_path = os.path.join(example_path, 'templates')
etc_path = os.path.join(os.path.dirname(os.path.normpath(sys.prefix)) + 'etc')
setup(name=NAME,
version=VER,
@ -51,7 +53,7 @@ setup(name=NAME,
'scripts/salt-cp',
'scripts/salt-call',
'scripts/salt'],
data_files=[('etc/salt',
data_files=[(os.path.join(etc_path),
['conf/master',
'conf/minion',
]),