PySysC/setup.py

45 lines
1.3 KiB
Python
Raw Normal View History

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'],
sources = ['PyScModule.cpp'])
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'],
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'],
)