Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicitly use python3 #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
choco install --no-progress cygwin
- name: Install cygwin additional packages
run: |
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -l C:/tools/cygwin/package -s http://mirrors.kernel.org/sourceware/cygwin/ -P CUnit,make,gcc-core,python
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -l C:/tools/cygwin/package -s http://mirrors.kernel.org/sourceware/cygwin/ -P CUnit,make,gcc-core,python,python3
shell: cmd
- name: Set ENV
run: |
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ $(BUILDDIR)/unittests: $(OBJS)
HELP_test_operators=run onnx backend operator tests
TARGET_test+=test_operators
test_operators: sharedlib
python tests/test_operators.py
python3 tests/test_operators.py

# Model tests
.phony:test_models
HELP_test_models=run model tests
TARGET_test+=test_models
test_models: sharedlib
python tests/test_models.py
python3 tests/test_models.py

.phony: test
HELP_test=run tests
Expand All @@ -141,7 +141,7 @@ test: $(TARGET_test)
HELP_benchmark=run benchmarks of all MODELS
TARGET+=benchmark
benchmark: sharedlib
python tests/benchmarking.py
python3 tests/benchmarking.py

.phony:connxr
HELP_connxr=build connxr binary
Expand Down Expand Up @@ -170,9 +170,9 @@ format-check:
HELP_onnx_generator=generate various onnx sources and headers
TARGET+=onnx_generator
onnx_generator:
python -m venv venv
python3 -m venv venv
. venv/bin/activate; pip install -r requirements.txt
cd scripts; python -m onnx_generator \
cd scripts; python3 -m onnx_generator \
$(if $(ONNX_INCLUDE), --include $(ONNX_INCLUDE)) \
$(if $(ONNX_EXCLUDE), --exclude $(ONNX_EXCLUDE)) \
$(if $(ONNX_VERSION), --version $(ONNX_VERSION)) \
Expand All @@ -192,6 +192,6 @@ distclean_venv:
HELP_generate_custom_tests=generate the custom test models using the py scripts
TARGET+=generate_custom_tests
generate_custom_tests:
python test_data/generate_custom_tests.py generate-data -o test_data
python3 test_data/generate_custom_tests.py generate-data -o test_data

include .Makefile.template