File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ ODIN_II/usefull_tools/**/track_completed
104
104
# Python
105
105
#
106
106
* .pyc
107
+ /.venv
107
108
108
109
#
109
110
# Vim
Original file line number Diff line number Diff line change @@ -451,3 +451,9 @@ list(APPEND DIRS_TO_FORMAT_PY "${CMAKE_CURRENT_SOURCE_DIR}/vpr")
451
451
list (APPEND DIRS_TO_FORMAT_PY "${CMAKE_CURRENT_SOURCE_DIR} /vtr_flow" )
452
452
453
453
include (AutoPyFormat )
454
+
455
+
456
+ #
457
+ # Python Environment setup
458
+ #
459
+ include (PyEnv )
Original file line number Diff line number Diff line change
1
+ # Create a python virtual environment using venv and install all necessary packages
2
+ # wheel should be installed before the requirements.txt list to prevent errors.
3
+ add_custom_target (env
4
+ COMMAND python3 -m venv ../.venv
5
+ COMMAND . ../.venv/bin/activate && pip3 install wheel
6
+ COMMAND . ../.venv/bin/activate && pip3 install -r ../requirements.txt
7
+ )
You can’t perform that action at this time.
0 commit comments