Skip to content

Commit d5aea53

Browse files
committed
build: guarantee that the script is executed with Python 3
1 parent 4648dd5 commit d5aea53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: build package clean install lint run test
22

33
build: clean ACKNOWLEDGMENTS.md
4-
python -m build
4+
python3 -m build
55

66
package: clean ACKNOWLEDGMENTS.md
77
pyinstaller ./utils/ns_packaging.spec --noconfirm --clean
@@ -16,7 +16,7 @@ clean:
1616
rm -rf dist/
1717
rm -rf src/neosca.egg-info
1818
# delete macos metadata
19-
rm -rf src/neosca/ns_data/.*
19+
find src/neosca/ns_data/ -name "._*" -type f -delete
2020

2121
install:
2222
# avoid rm
@@ -29,10 +29,10 @@ lint:
2929
mypy --check-untyped-defs src/
3030

3131
test:
32-
python -m unittest
32+
python3 -m unittest
3333

3434
run:
35-
cd ./src && python -m neosca gui
35+
cd ./src && python3 -m neosca gui
3636

3737
ACKNOWLEDGMENTS.md: src/neosca/ns_data/acks.json utils/ns_generate_acks.py
38-
python utils/ns_generate_acks.py
38+
python3 utils/ns_generate_acks.py

0 commit comments

Comments
 (0)