update packaging and test

This commit is contained in:
eyck committed 2020-12-23 09:17:31 +01:00
1 parent ae9e64e9fa
commit 90b9c3fc5d
8 files changed
+182 -42

No files matched your search

+15 -7
View File
@@ -1,18 +1,26 @@
# PySysC
A Python package to use SystemC from Python
A Python 3 package to use SystemC from Python
## How to setup the environment
The installation for PySysC is as follows (using bash shell):
```
pyenv install 3.6.3
pyenv virtualenv 3.6.3 pysysc
pyenv activate pysysc
STDCXX=11 MAKE_NPROCS=32 pip install --verbose cppyy --no-binary=cppyy-cling
pip install conan
# create virtual environment
python3 -m venv pysysc-env
# and enable it
. pysysc-env/bin/activate
# install needed packages
python3 -m pip install wheel
# install cppyy, C++ std version needs to match the version used to build the SystemC library
STDCXX=11 python3 -m pip install cppyy
# clone of PySysC
git clone https://git.minres.com/SystemC/PySysC.git
# install PySysC, for development PySysC use 'python3 -m pip install -e`
python3 -m pip install -e PySysC
```
## TODO
* pythonize `sc_module` with iteration protocol (`__next__` and `StopIteration` exception)
* pythonize `sc_module` with iteration protocol (`__next__` and `StopIteration` exception)