2015-08-13 12:54:03 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
2015-12-03 12:06:05 +01:00
|
|
|
"""Setup configuration file for the Langkit framework."""
|
2015-08-13 12:54:03 +02:00
|
|
|
|
2015-12-23 11:29:46 +01:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
2015-08-13 12:54:03 +02:00
|
|
|
from distutils.core import setup
|
2015-12-03 14:54:11 +01:00
|
|
|
import os
|
2015-08-13 12:54:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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',
|
2016-05-23 13:57:20 -04:00
|
|
|
requires=['Mako', 'coverage', 'PyYAML', 'enum', 'enum34', 'funcy'],
|
2016-05-15 17:25:32 +02:00
|
|
|
packages=['langkit', 'langkit.expressions'],
|
2016-04-24 10:56:11 +02:00
|
|
|
package_data={'langkit': [
|
2016-05-15 17:35:12 +02:00
|
|
|
'adalog/adalog.gpr',
|
|
|
|
|
'adalog/src/*.adb', 'adalog/src/*.ads', 'adalog/src/*.gpr',
|
2016-04-24 10:56:11 +02:00
|
|
|
'support/*.adb', 'support/*.ads', 'support/*.gpr',
|
|
|
|
|
'templates/*.mako', 'templates/*/*.mako'
|
|
|
|
|
]},
|
2015-08-13 12:54:03 +02:00
|
|
|
scripts=[os.path.join('scripts', 'create-project.py')]
|
|
|
|
|
)
|