PySysC/setup.py

56 lines
1.6 KiB
Python
Raw Normal View History

2021-01-04 20:54:53 +01:00
#
# Copyright (c) 2019 -2021 MINRES Technolgies GmbH
#
# SPDX-License-Identifier: Apache-2.0
#
from setuptools import setup, Extension
import os
2018-12-31 15:23:37 +01:00
def readme():
with open('README.md') as f:
return f.read()
sysc_home = os.environ['SYSTEMC_HOME']
pysyscsc = Extension('pysyscsc',
define_macros = [('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0')],
extra_compile_args = ['-std=c++11'],
include_dirs = [sysc_home+'/include'],
libraries = ['systemc'],
library_dirs = [sysc_home+'/lib'],
2020-12-23 09:17:31 +01:00
sources = ['PyScModule.cpp'],
depends = ['PyScModule.h'])
2018-12-31 15:23:37 +01:00
setup(name='PySysC',
2018-12-31 15:23:37 +01:00
version='0.1',
description='Python SystemC binding',
long_description=readme(),
ext_modules = [pysyscsc],
2018-12-31 15:23:37 +01:00
classifiers=[
'Development Status :: 3 - Alpha',
2019-01-03 21:15:57 +01:00
'License :: OSI Approved :: Apache Software License',
2018-12-31 15:23:37 +01:00
'Programming Language :: Python :: 3.6',
2019-01-03 21:15:57 +01:00
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)'
2018-12-31 15:23:37 +01:00
],
keywords='SystemC simulation',
url='https://git.minres.com/SystemC/PySysC',
author='MINRES Technologies GmbH',
author_email='info@minres.com',
license='Apache-2.0',
packages=['pysysc'],
2020-12-23 09:17:31 +01:00
package_data={
'pysyscsc': ['PyScModule.h'],
},
#data_files=[('include',['PyScModule.h'])],
headers=['PyScModule.h'],
include_package_data=True,
2018-12-31 15:23:37 +01:00
install_requires=[
'cppyy',
'conan'
],
test_suite='nose.collector',
tests_require=['nose'],
)