Files
langkit/setup.py
Philipp Smirnov 369b9a89da setup.py: add missing langkit.scripts package to wheel
The "create-project.py" executable wrapper file created by setuptools
was crashing with an error:

    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "C:/Users/User/Documents/Programs/msys64-1/msys64/ucrt64/bin/create-project.exe/__main__.py", line 4, in <module>
    ModuleNotFoundError: No module named 'langkit.scripts'

because the source file "langkit/scripts/create_project.py" was not
added to the wheel archive.
2024-02-16 14:28:52 +00:00

41 lines
1.1 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',
'templates/*.mako', 'templates/*/*.mako', 'py.typed',
'adasat/src/*.ads', 'adasat/src/*.adb'
]},
entry_points={
"console_scripts": [
"create-project.py = langkit.scripts.create_project:main",
]
},
)