Merge pull request #351 from mithro/master

Fix Python environment
This commit is contained in:
Tim Ansell 2018-12-17 18:59:10 -08:00 committed by GitHub
commit 9904aa4fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -9,7 +9,7 @@ env:
virtualenv --python=python3 --system-site-packages env
. env/bin/activate; pip install -r requirements.txt
ln -sf $(PWD)/prjxray env/lib/python3.*/site-packages/
python -c "import yaml" || (echo "Unable to find python-yaml" && exit 1)
. env/bin/activate; python -c "import yaml" || (echo "Unable to find python-yaml" && exit 1)
build:
git submodule update --init --recursive

View File

@ -49,9 +49,19 @@ Creating HTML documentation:
cd htmlgen
python3 htmlgen.py
(Option 1) - Install the Python environment locally
apt-get install virtualenv python3-virtualenv python3-yaml
make env
(Option 2) - Install the Python environment globally
apt-get install python3-yaml
sudo pip3 install -r requirements.txt
(Re-)creating the database:
sudo pip3 install -r requirements.txt
cd fuzzers
make -j$(nproc)