Install FASM into environment properly.

This will make sure that any requirements for the FASM library are
correctly installed into the environment too.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Keith Rothman 2019-02-06 17:12:01 -08:00 committed by Tim 'mithro' Ansell
parent 8e70e4e9ce
commit 1e3a136ce1
3 changed files with 13 additions and 1 deletions

View File

@ -4,8 +4,19 @@ ALL_EXCLUDE = third_party .git env build
IN_ENV = if [ -e env/bin/activate ]; then . env/bin/activate; fi;
env:
virtualenv --python=python3 --system-site-packages env
# Install prjxray
ln -sf $(PWD)/prjxray env/lib/python3.*/site-packages/
$(IN_ENV) python -c "import prjxray"
# Install fasm from third_party
$(IN_ENV) pip install --upgrade -e third_party/fasm
# Install project dependencies
$(IN_ENV) pip install -r requirements.txt
# Install project's documentation dependencies
$(IN_ENV) pip install -r docs/requirements.txt
# Check fasm library was installed
$(IN_ENV) python -c "import fasm"
$(IN_ENV) python -c "import fasm.output"
# Check YAML is installed
$(IN_ENV) python -c "import yaml" || (echo "Unable to find python-yaml" && exit 1)
build:

View File

@ -1,3 +1,4 @@
fasm
futures
intervaltree
numpy

2
third_party/fasm vendored

@ -1 +1 @@
Subproject commit ece57149c96cea82ab155af3bba04e76eee4ab6a
Subproject commit ddc281a41662bff3efb4a66c5b22307e31e5df44