Skip to content

Commit

Permalink
Fixed PYTHONPATH installation instructions after directory restructur…
Browse files Browse the repository at this point in the history
…e of core lava repo (lava-nc#48)

* Update README.md

Updated installation instructions of README.md to match new repo structure.

* Update tutorial01_installing_lava.ipynb

Updating PYTHONPATH installation instructions to match new dir structure of core lava repo

* Fixing PYTHONPATH in Installing Lava tutorial after directory restructure
  • Loading branch information
drager-intel authored Nov 13, 2021
1 parent c9af522 commit b021600
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ $ git clone [email protected]:lava-nc/lava.git
$ cd lava
$ pip install -r build-requirements.txt
$ pip install -r requirements.txt
$ export PYTHONPATH=~/lava
$ export PYTHONPATH=$(pwd)/src
$ pyb -E unit
```
Note that you should install the core Lava repository (lava) before installing other Lava libraries such as lava-optimization or lava-dl. Test your PYTHONPATH using `echo $PYTHONPATH` and ensure 'lava/src' is the first entry that precedes any additional Lava library src paths.

#### [Windows]
```cmd
cd %HOMEPATH%
Expand All @@ -93,9 +95,10 @@ git clone [email protected]:lava-nc/lava.git
cd lava
pip install -r build-requirements.txt
pip install -r requirements.txt
set PYTHONPATH=%HOMEPATH%\lava
set PYTHONPATH=%cd%\src
pyb -E unit
```
Note that you should install the core Lava repository (lava) before installing other Lava libraries such as lava-optimization or lava-dl. Test your PYTHONPATH using `echo %PYTHONPATH%` and ensure 'lava\src' is the first entry that precedes any additional Lava library src paths.

You should expect the following output after running the unit tests:
```
Expand Down
10 changes: 7 additions & 3 deletions src/lava/tutorials/in_depth/tutorial01_installing_lava.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
"- cd lava\n",
"- pip install -r build-requirements.txt\n",
"- pip install -r requirements.txt\n",
"- export PYTHONPATH=~/lava\n",
"- export PYTHONPATH=$(pwd)/src\n",
"- pyb -E unit\n",
"\n",
"Note that you should install the core Lava repository (lava) before installing other Lava libraries such as lava-optimization or lava-dl. Test your PYTHONPATH using `echo $PYTHONPATH` and ensure 'lava/src' is the first entry that precedes any additional Lava library src paths.\n",
"\n",
"#### 2.1.2 [Windows]\n",
"- cd %HOMEPATH%\n",
"- python3 -m venv python3_venv\n",
Expand All @@ -59,9 +61,11 @@
"- cd lava\n",
"- pip install -r build-requirements.txt\n",
"- pip install -r requirements.txt\n",
"- set PYTHONPATH=%HOMEPATH%\\lava\n",
"- set PYTHONPATH=%cd%\\src\n",
"- pyb -E unit\n",
"\n",
"Note that you should install the core Lava repository (lava) before installing other Lava libraries such as lava-optimization or lava-dl. Test your PYTHONPATH using `echo %PYTHONPATH%` and ensure 'lava\\src' is the first entry that precedes any additional Lava library src paths.\n",
"\n",
"You should expect the following output after running the unit tests:\n",
"```\n",
"PyBuilder version 0.13.3\n",
Expand Down Expand Up @@ -212,5 +216,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}

0 comments on commit b021600

Please sign in to comment.