Files
langkit/setup.py
Pierre-Marie de Rodat 8337d69402 setup.py: make executable and fix data files detection
* Make the setup.py script executable for convenience.

  * Enhance langkit_support sources installation procedures in order to
    avoid temporary files such as the "obj" directory.

  * Update data files list to include Mako templates.

Change-Id: If16aa0b12b274eb1fabd5e24791f5f751874e23b
TN: P210-005
2016-02-10 12:04:58 +01:00

33 lines
851 B
Python
Executable File

#! /usr/bin/env python
"""Setup configuration file for the Langkit framework."""
from __future__ import absolute_import
from distutils.core import setup
import os
ROOT_DIR = os.path.dirname(__file__)
if ROOT_DIR != '':
os.chdir(ROOT_DIR)
# Run the setup tools
setup(
name='Langkit',
version='0.1-dev',
author='AdaCore',
author_email='report@adacore.com',
url='https://www.adacore.com',
description='A Python framework to generate language parsers',
requires=['Mako', 'coverage'],
packages=['langkit'],
package_data={'langkit': ['support/*.adb',
'support/*.ads',
'support/*.gpr',
'templates/*.mako',
'templates/*/*.mako']},
scripts=[os.path.join('scripts', 'create-project.py')]
)