#!/usr/bin/env python3

from distutils.core import setup
from distutils.sysconfig import get_python_lib
import os

from coalib.misc.i18n import compile_translations


if __name__ == "__main__":
    data_files = compile_translations()
    data_files.append((os.path.join(get_python_lib(), "coalib"),
                       ["coalib/default_coafile"]))

    setup(name='coala',
          version='0.2',
          description='Code Analysis Application (coala)',
          maintainer='Lasse Schuirmann, Fabian Neuschmidt',
          maintainer_email='lasse.schuirmann@gmail.com, fabian@neuschmidt.de',
          url='http://www.coala.schuirmann.net/',
          scripts=['coala'],
          packages=['bears',
                    'bears.misc',
                    'bears.spacing',
                    'coalib',
                    'coalib.bearlib',
                    'coalib.bearlib.abstractions',
                    'coalib.bearlib.parsing',
                    'coalib.bearlib.spacing',
                    'coalib.bears',
                    'coalib.collecting',
                    'coalib.misc',
                    'coalib.output',
                    'coalib.output.printers',
                    'coalib.parsing',
                    'coalib.processes',
                    'coalib.processes.communication',
                    'coalib.results',
                    'coalib.results.result_actions',
                    'coalib.settings',
          ],
          license="AGPL v3",
          data_files=data_files
    )

@@ -230,125 +230,8 @@
 ns()
-%0A    data_files.append((os.path.join(get_python_lib(), %22coalib%22),%0A                       %5B%22coalib/default_coafile%22%5D))
 %0A%0A  
@@ -1320,16 +1320,17 @@
 ettings'
+%5D
 ,%0A      
@@ -1333,17 +1333,60 @@
         
-%5D
+package_data=%7B'coalib': %5B'default_coafile'%5D%7D
 ,%0A      

Install .coafile via package_data