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
|
|
|
|
|
|
|
|
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',
|
2020-05-26 13:49:04 +02:00
|
|
|
install_requires=['Mako', 'PyYAML', 'funcy', 'docutils', 'e3-core'],
|
2018-01-02 12:58:58 +01:00
|
|
|
packages=['langkit',
|
|
|
|
|
'langkit.expressions',
|
|
|
|
|
'langkit.gdb',
|
2019-03-27 14:27:49 +01:00
|
|
|
'langkit.lexer',
|
2018-01-02 12:58:58 +01:00
|
|
|
'langkit.stylechecks',
|
|
|
|
|
'langkit.utils'],
|
2016-04-24 10:56:11 +02:00
|
|
|
package_data={'langkit': [
|
2020-03-12 14:41:21 +01:00
|
|
|
'coverage.css', 'support/*.adb', 'support/*.ads', 'support/*.gpr',
|
2016-04-24 10:56:11 +02:00
|
|
|
'templates/*.mako', 'templates/*/*.mako'
|
|
|
|
|
]},
|
2020-05-26 14:58:20 +02:00
|
|
|
scripts=[os.path.join('scripts', 'create-project.py'),
|
|
|
|
|
os.path.join('scripts', 'build-langkit_support.py')]
|
2015-08-13 12:54:03 +02:00
|
|
|
)
|