drgn/setup.py

44 lines
1005 B
Python
Raw Normal View History

#!/usr/bin/env python3
2018-04-15 23:30:54 +01:00
from drgn import __version__
2018-04-07 18:42:48 +01:00
from setuptools import setup, find_packages
from setuptools.extension import Extension
extensions = [
Extension(
name='drgn.internal.corereader',
sources=[
'drgn/internal/corereader.c',
],
),
Extension(
name='drgn.internal.dwarfindex',
sources=[
'drgn/internal/dwarfindex.c',
],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
),
Extension(
name='drgn.internal.thunk',
sources=[
'drgn/internal/thunk.c',
],
),
]
setup(
name='drgn',
2018-04-15 23:30:54 +01:00
version=__version__,
packages=find_packages(exclude=['examples', 'scripts', 'tests']),
ext_modules=extensions,
2018-04-07 18:42:48 +01:00
entry_points={
'console_scripts': ['drgn=drgn.internal.cli:main'],
2018-04-07 18:42:48 +01:00
},
author='Omar Sandoval',
author_email='osandov@osandov.com',
2018-04-15 23:03:33 +01:00
license='GPL-3.0+',
description='Scriptable debugger library',
)