File: 0004-use-python3-in-Makefile.patch

package info (click to toggle)
vorta 0.8.10-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,032 kB
  • sloc: python: 8,702; makefile: 86; sh: 68; xml: 50
file content (29 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Nicholas D Steeves <nsteeves@gmail.com>
Date: Tue, 12 Jan 2021 17:15:45 -0500
Subject: use python3 in Makefile

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index d1d793e..20f15d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 export VORTA_SRC := src/vorta
 export APPSTREAM_METADATA := src/vorta/assets/metadata/com.borgbase.Vorta.appdata.xml
-VERSION := $(shell python -c "from src.vorta._version import __version__; print(__version__)")
+VERSION := $(shell python3 -c "from src.vorta._version import __version__; print(__version__)")
 
 .PHONY : help
 .DEFAULT_GOAL := help
@@ -26,7 +26,7 @@ github-release: dist/Vorta.dmg  ## Add new Github release and attach macOS DMG
 	git checkout master
 
 pypi-release: translations-to-qm  ## Upload new release to PyPi
-	python setup.py sdist
+	python3 setup.py sdist
 	twine upload dist/vorta-${VERSION}.tar.gz
 
 bump-version:  ## Tag new version. First set new version number in src/vorta/_version.py