Files
langkit/setup.py
Pierre-Marie de Rodat f760a5f1a2 Reorganize build procedure for Langkit_Support
This commit stops considering Langkit_Support as a generated project:

* move the "langkit/support" directory to "support" (not
  "langkit_support" for convenience with tab-completion);

* move the meat of the "langkit_support_gpr.mako" template to the static
  "langkit_support.gpr" file, and remove the template;

* remove the "build-langkit_support.py" script and all the corresponding
  libmanage.py/langkit_support.py code;

* enhance the top-level "manage.py" script to build/setenv
  Langkit_Support and import the packaging tools from
  "build-langkit_support.py".

From now on, Langkit_Support is a really a standalone library project,
and thus a "real" dependency for Langkit-generated libraries.

TN: T914-012
2020-10-26 15:36:55 +01:00

35 lines
932 B
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-dev',
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.stylechecks',
'langkit.utils'],
package_data={'langkit': [
'coverage.css', 'support/*.adb', 'support/*.ads', 'support/*.gpr',
'templates/*.mako', 'templates/*/*.mako'
]},
scripts=[os.path.join('scripts', 'create-project.py')]
)