21 lines
938 B
Markdown
21 lines
938 B
Markdown
|
# PySysC notes
|
||
|
|
||
|
## How to install pyenv
|
||
|
|
||
|
```
|
||
|
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
|
||
|
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
||
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
|
||
|
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
|
||
|
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
||
|
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
|
||
|
git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper
|
||
|
```
|
||
|
|
||
|
## How to generate an AST dump
|
||
|
|
||
|
```
|
||
|
clang++-6.0 -Xclang -ast-dump -fsyntax-only components.h -I/home/eyck/.conan/data/SystemC/2.3.3/minres/stable/package/639c4a2f24965e2a3603237a94eab6929f9d3993/include/ -std=c++11 -fno-color-diagnostics
|
||
|
```
|
||
|
|