2019-06-08 16:31:23 +02:00
|
|
|
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()
|
|
|
|
|
2019-06-08 16:31:23 +02:00
|
|
|
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'],
|
|
|
|
sources = ['PyScModule.cpp'])
|
|
|
|
|
2018-12-31 15:23:37 +01:00
|
|
|
|
2019-01-01 14:48:37 +01:00
|
|
|
setup(name='PySysC',
|
2018-12-31 15:23:37 +01:00
|
|
|
version='0.1',
|
|
|
|
description='Python SystemC binding',
|
|
|
|
long_description=readme(),
|
2019-06-08 16:31:23 +02:00
|
|
|
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'],
|
2019-06-08 16:31:23 +02:00
|
|
|
data_files=[('.',['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'],
|
|
|
|
)
|