cc30771f6b
Why I did it Migrate ptftests script to python3, in order to do an incremental migration, add python virtual environment firstly, install all required python packages in virtual env as well. Then migrate ptftests scripts from python2 to python3 one by one avoid impacting non-changed scripts. Signed-off-by: Zhaohui Sun zhaohuisun@microsoft.com How I did it Add python3 virtual environment for docker-ptf. Add submodule ptf-py3 and install patched ptf 0.9.3 into virtual environment as well, two ptf issues were reported here: p4lang/ptf#173 p4lang/ptf#174 Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
12 lines
453 B
Plaintext
12 lines
453 B
Plaintext
|
|
SPATH := $($(PTF_PY3)_SRC_PATH)
|
|
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/ptf-py3.mk rules/ptf-py3.dep
|
|
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
|
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))
|
|
|
|
$(PTF_PY3)_CACHE_MODE := GIT_CONTENT_SHA
|
|
$(PTF_PY3)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
|
$(PTF_PY3)_DEP_FILES := $(DEP_FILES)
|
|
$(PTF_PY3)_SMDEP_FILES := $(SMDEP_FILES)
|
|
$(PTF_PY3)_SMDEP_PATHS := $(SPATH)
|