Skip to content

Commit

Permalink
Merge pull request verilog-to-routing#1510 from byuccl/python_require…
Browse files Browse the repository at this point in the history
…ments_added

Python requirements added
  • Loading branch information
jgoeders authored Sep 12, 2020
2 parents 95843c2 + 3fbcec1 commit 25efd66
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/kokoro/run-vtr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ set -x
set -e

# Set up the host
source $SCRIPT_DIR/steps/hostsetup.sh
source $SCRIPT_DIR/steps/hostinfo.sh

# Output git information
ls -l
cd github
ls -l
cd vtr-verilog-to-routing
source $SCRIPT_DIR/steps/hostsetup.sh
source $SCRIPT_DIR/steps/hostinfo.sh

# Output git information
source $SCRIPT_DIR/steps/git.sh

if [ $VTR_TEST == "vtr_reg_strong" ]; then
Expand Down
10 changes: 10 additions & 0 deletions .github/kokoro/steps/hostsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ echo
echo "========================================"
echo "Host install packages"
echo "----------------------------------------"

sudo apt-get install -y \
bash \
bison \
Expand Down Expand Up @@ -58,6 +59,15 @@ sudo apt-get install -y \
#Don't include libtbb-dev since it may increase memory usage
#libtbb-dev \

export PATH="$PATH:/home/kbuilder/.local/bin"

pyenv install -f 3.6.3
pyenv global 3.6.3
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
rm get-pip.py
python3 -m pip install -r requirements.txt

if [ -z "${BUILD_TOOL}" ]; then
export BUILD_TOOL=make
fi
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,8 @@ before_script:
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python3 get-pip.py
- rm get-pip.py
- python3 -m pip install \
pylint \
black
- python3 -m pip install -r requirements.txt

- source .github/travis/common.sh
- ./.github/travis/setup.sh

Expand Down
2 changes: 1 addition & 1 deletion dev/upgrade_vtr_archs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

find vpr libs/libarchfpga ODIN_II vtr_flow/arch utils/fasm/test -name '*.xml' | xargs -n 1 ./vtr_flow/scripts/upgrade_arch.py
find vpr libs/libarchfpga ODIN_II vtr_flow/arch utils/fasm/test -name '*.xml' | xargs -n 1 python3 ./vtr_flow/scripts/upgrade_arch.py
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
black
prettytable
pylint
lxml

0 comments on commit 25efd66

Please sign in to comment.