BF: setup.py build now includes sample log files for tests

pull/300/head
Steven Hiscocks 12 years ago
parent 1eea0dcec8
commit 774c9ce4fd

@ -38,6 +38,7 @@ except ImportError:
# python 2.x
from distutils.command.build_py import build_py
from distutils.command.build_scripts import build_scripts
import os
from os.path import isfile, join, isdir
import sys, warnings
from glob import glob
@ -106,8 +107,10 @@ setup(
'fail2ban.tests',
],
package_data = {
'fail2ban.tests':
['files/*.log', 'files/filter.d/*.conf'],
'fail2ban.tests':
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
for w in os.walk('fail2ban/tests/files')
for f in w[2]]
},
data_files = [
('/etc/fail2ban',

Loading…
Cancel
Save