mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
Stop using setuptools' "scripts" feature, now obsolete and bound to
create issues in the future, and use the newer
entry_point/console_script mechanism instead to create the same
command-line tool.
Preserve the "scripts/create-script.py" executable source for
development environment convenience.
(cherry picked from commit 059030ba0e)
40 lines
1.0 KiB
Python
Executable File
40 lines
1.0 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.stylechecks',
|
|
'langkit.utils'],
|
|
package_data={'langkit': [
|
|
'coverage.css', 'support/*.adb', 'support/*.ads', 'support/*.gpr',
|
|
'templates/*.mako', 'templates/*/*.mako', 'py.typed',
|
|
'adasat/src/*.ads', 'adasat/src/*.adb'
|
|
]},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"create-project.py = langkit.scripts.create_project:main",
|
|
]
|
|
},
|
|
)
|