Description: Improve installation
 Upstream installs configuration files directly in the home user directory
 but we can't / don't do that in packages.
 Add a data_files in setup to manage the installation of config files in
 /etc/osrframework. These files will be copied in the user directory at the
 first launch.
Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2017-09-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@
 
 import os
 import sys
+import glob
 from setuptools import setup, find_packages
 import shutil
 import site
@@ -109,6 +110,11 @@ setup(
         'Topic :: Text Processing :: Markup :: HTML'
     ],
     packages=find_packages(),
+    data_files=[
+        ("/etc/osrframework/default", glob.glob("config/*.cfg")),
+        ("/etc/osrframework/plugins/patterns", ["config/plugins/pattern.py.sample"]),
+        ("/etc/osrframework/plugins/wrappers", ["config/plugins/wrapper.py.sample"]),
+    ],
     long_description=long_description,
     install_requires=[
         "setuptools",
