fixed setup install

master 2.1.22
parent e4b9977fa8
commit 9ab504dd03

@ -4,11 +4,10 @@ INSTALL
-------
calculate-server needs the following library version installed, in order to run:
python >= 2.5
python-ldap >= 2.0.0
pyxml >= 0.8
calculate-lib >= 2.1.8
python >= 3.8
python-ldap >= 3.3.0
pymilter >= 1.0.4
lxml >= 4.6.3
To install calculate-server , just execute the install script 'setup.py'.
Example:

@ -41,7 +41,7 @@ data_files += var_data_files
def scanDirs(profilesDirs):
"""Recursive scanning directories"""
dirs = []
dirs_total = []
class dirProf:
def __init__(self):
self.baseDir = False
@ -64,8 +64,8 @@ def scanDirs(profilesDirs):
if '/.svn' in absNameDir:
continue
dirP.dirs.append(absNameDir)
dirs.append(dirP)
return dirs
dirs_total.append(dirP)
return dirs_total
def create_data_files (data_dirs, prefix=""):
test1_files = []
@ -147,7 +147,9 @@ class cl_install_data(install_data):
("/etc/conf.d/sortmilter.conf", "sortmilter", None)]
data_find = \
dict(
[(os.path.basename(x[0]), [list(reversed([y for y in x[0].split("/") if y])), x[1],x[2]]) for x in data_file])
[(os.path.basename(x[0]),
[list(reversed([y for y in x[0].split("/") if y])), x[1],x[2]])
for x in data_file])
for path in self.get_outputs():
nameFile = os.path.split(path)[1]

Loading…
Cancel
Save