mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
This new command line tool has the same CLI as current manage.py scripts, but automatically loads "langkit.yaml" files configurations, so that language specs do not have to write Python code to subclass ManageScript.
44 lines
1.2 KiB
Python
Executable File
44 lines
1.2 KiB
Python
Executable File
#! /usr/bin/env python
|
|
|
|
"""Setup configuration file for the Langkit framework."""
|
|
|
|
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.0',
|
|
author='AdaCore',
|
|
author_email='report@adacore.com',
|
|
url='https://www.adacore.com',
|
|
description='A Python framework to generate language parsers',
|
|
install_requires=['Mako', 'PyYAML', 'funcy', 'docutils', 'e3-core'],
|
|
packages=['langkit',
|
|
'langkit.expressions',
|
|
'langkit.gdb',
|
|
'langkit.lexer',
|
|
'langkit.scripts',
|
|
'langkit.stylechecks',
|
|
'langkit.utils'],
|
|
package_data={'langkit': [
|
|
'coverage.css', 'support/*.adb', 'support/*.ads', 'support/*.gpr',
|
|
'support/*.adc', 'templates/*.mako', 'templates/*/*.mako', 'py.typed',
|
|
'adasat/src/*.ads', 'adasat/src/*.adb'
|
|
]},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"create-project.py = langkit.scripts.create_project:main",
|
|
"generate-msvc-lib-file.py ="
|
|
" langkit.scripts.generate_msvc_lib_file:main",
|
|
"lkm = langkit.scripts.lkm:main",
|
|
]
|
|
},
|
|
)
|