diff --git a/bindings/Makefile b/bindings/Makefile index 296b44f3..bc5fb243 100644 --- a/bindings/Makefile +++ b/bindings/Makefile @@ -24,8 +24,8 @@ build: $(MAKE) -C go gen_const $(MAKE) -C java gen_const $(MAKE) -C ruby gen_const - python const_generator.py dotnet - python const_generator.py pascal + python3 const_generator.py dotnet + python3 const_generator.py pascal install: build $(MAKE) -C python install @@ -40,7 +40,7 @@ python: %.c.txt: c $(ENV_VARS) ../samples/$(@:%.c.txt=%) > $@ %.py.txt: python - $(ENV_VARS) python python/$(@:%.txt=%) > $@ + $(ENV_VARS) python3 python/$(@:%.txt=%) > $@ %.py.test: %.c.txt %.py.txt $(DIFF) -u $(@:%.py.test=%.c.txt) $(@:%.py.test=%.py.txt) diff --git a/bindings/go/Makefile b/bindings/go/Makefile index fe898ae1..f8b0d5f1 100644 --- a/bindings/go/Makefile +++ b/bindings/go/Makefile @@ -6,7 +6,7 @@ all: gen_const cd unicorn && go build gen_const: - cd .. && python const_generator.py go + cd .. && python3 const_generator.py go test: all cd unicorn && LD_LIBRARY_PATH=../../../ DYLD_LIBRARY_PATH=../../../ go test diff --git a/bindings/java/Makefile b/bindings/java/Makefile index 73d20725..313db888 100644 --- a/bindings/java/Makefile +++ b/bindings/java/Makefile @@ -19,7 +19,7 @@ uninstall: $(MAKE) -f Makefile.build uninstall gen_const: - cd .. && python const_generator.py java + cd .. && python3 const_generator.py java clean: rm -f unicorn/*.class diff --git a/bindings/python/Makefile b/bindings/python/Makefile index ea831fd9..363d646f 100644 --- a/bindings/python/Makefile +++ b/bindings/python/Makefile @@ -3,16 +3,16 @@ .PHONY: gen_const install install3 clean sdist sdist3 bdist bdist3 sdist_win bdist_win gen_const: - cd .. && python const_generator.py python + cd .. && python3 const_generator.py python install: rm -rf src/ dist/ rm -rf prebuilt/win64/unicorn.dll rm -rf prebuilt/win32/unicorn.dll if test -n "${DESTDIR}"; then \ - python setup.py install --root="${DESTDIR}"; \ + python3 setup.py install --root="${DESTDIR}"; \ else \ - python setup.py install; \ + python3 setup.py install; \ fi install3: @@ -30,7 +30,7 @@ sdist: rm -rf src/ dist/ rm -rf prebuilt/win64/unicorn.dll rm -rf prebuilt/win32/unicorn.dll - python setup.py sdist register upload + python3 setup.py sdist register upload # build & upload PyPi package with source code of the core sdist3: @@ -44,7 +44,7 @@ bdist: rm -rf src/ dist/ rm -rf prebuilt/win64/unicorn.dll rm -rf prebuilt/win32/unicorn.dll - python setup.py bdist_wheel register upload + python3 setup.py bdist_wheel register upload # build & upload PyPi package with precompiled core bdist3: @@ -57,7 +57,7 @@ bdist3: # NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand sdist_win: rm -rf src/ dist/ - python setup.py sdist register upload + python3 setup.py sdist register upload # build & upload PyPi package with prebuilt core # NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand diff --git a/bindings/ruby/Makefile b/bindings/ruby/Makefile index 9d52de94..aa92fa53 100644 --- a/bindings/ruby/Makefile +++ b/bindings/ruby/Makefile @@ -8,4 +8,4 @@ install: gen_const cd unicorn_gem && gem install --local pkg/unicorn-engine-1.0.1.gem gen_const: - cd .. && python const_generator.py ruby + cd .. && python3 const_generator.py ruby