Added python version check in flow and task scripts
This commit is contained in:
parent
a25124b58c
commit
02137805c7
|
@ -1,3 +1,12 @@
|
|||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
# Script Name : run_fpga_flow.py
|
||||
# Description : This script designed to run different flows supported by
|
||||
# OpensFPGA project.
|
||||
# Args : python3 run_fpga_flow.py --help
|
||||
# Author : Ganesh Gore
|
||||
# Email : ganeshgore@utah.edu
|
||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
|
@ -18,6 +27,9 @@ from importlib import util
|
|||
if util.find_spec("humanize"):
|
||||
import humanize
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
raise Exception("run_fpga_task script must be using Python 3")
|
||||
|
||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
# Initialise general paths for the script
|
||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
# Script Name : run_fpga_task.py
|
||||
# Description : This script designed to run openfpga_flow tasks,
|
||||
# Opensfpga task are design to run opefpga_flow on each
|
||||
# Combination of architecture, benchmark and script paramters
|
||||
# Args : python3 run_fpga_task.py --help
|
||||
# Author : Ganesh Gore
|
||||
#Email : ganeshgore@utah.edu
|
||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
|
@ -19,6 +29,9 @@ from collections import OrderedDict
|
|||
if util.find_spec("humanize"):
|
||||
import humanize
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
raise Exception("run_fpga_task script must be using Python 3")
|
||||
|
||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
# Configure logging system
|
||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||
|
|
Loading…
Reference in New Issue