Skip to content

Commit 31d8e52

Browse files
committed
fix: build releases with python3
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
1 parent 1a1aae5 commit 31d8e52

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ PREFIX?=/usr
44
DISTNAME=inkscape-silhouette
55
EXCL=--exclude \*.orig --exclude \*.pyc
66
ALL=README.md *.png *.sh *.rules *.py *.inx examples misc silhouette
7-
VERS=$$(python ./sendto_silhouette.py --version)
7+
VERS=$$(python3 ./sendto_silhouette.py --version)
88

9-
## echo '<xml height="0"/>' | python ./sendto_silhouette.py /dev/stdin
9+
## echo python3 ./sendto_silhouette.py
1010
# 'module' object has no attribute 'core'
1111
# 'module' object has no attribute 'core'
1212
# done. 0 min 0 sec
@@ -15,7 +15,7 @@ VERS=$$(python ./sendto_silhouette.py --version)
1515
# --------
1616
# echo > /etc/apt/sources.list.d/backports.list 'deb http://ftp.debian.org debian jessie-backports main'
1717
# apt-get update
18-
# apt-get -t jessie-backports install python-usb
18+
# apt-get -t jessie-backports install python3-usb
1919
# vi /etc/group
2020
# lp:x:debian
2121

@@ -55,7 +55,7 @@ tar_dist_classic: clean
5555
@echo version should be $(VERS)
5656

5757
tar_dist:
58-
python setup.py sdist --format=bztar
58+
python3 setup.py sdist --format=bztar
5959
mv dist/*.tar* .
6060
rm -rf dist
6161

distribute/deb/description-pak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
An inkscape extension to drive a Silhouette Cameo plotter.
22

3-
Requires python-usb 1.0.0 -- if this causes errors, please try:
3+
Requires python3-usb 1.0.0 -- if this causes errors, please try:
44
<pre>
5-
sudo apt install python-pip python-setuptools
6-
sudo pip install --upgrade pyusb
5+
sudo apt install python3-pip python3-setuptools
6+
sudo pip3 install --upgrade pyusb
77
</pre>
88

distribute/deb/dist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ name=$1
55
vers=$2
66
url=http://github.com/fablabnbg/$name
77
# versioned dependencies need \ escapes to survive checkinstall mangling.
8-
# requires="python-usb\ \(\>=1.0.0\), bash"
8+
# requires="python3-usb\ \(\>=1.0.0\), bash"
99

1010
## not even ubuntu 16.04 has python-usb 1.0, we requre any python-usb
1111
## and check at runtime again.
12-
requires="python-usb, bash"
12+
requires="python3-usb, bash"
1313

1414
tmp=../out
1515

distribute/distribute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
echo "Determining Version:"
3-
VERSION=$(python ../sendto_silhouette.py --version)
3+
VERSION=$(python3 ../sendto_silhouette.py --version)
44

55
test -e /usr/bin/xpath || sudo apt-get install libxml-xpath-perl
66
test -e /usr/bin/checkinstall || sudo apt-get install checkinstall

0 commit comments

Comments
 (0)