-
Notifications
You must be signed in to change notification settings - Fork 63
/
makefile
28 lines (23 loc) · 649 Bytes
/
makefile
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
# build everything
all: test deployment
# build the LaiNES CPP code
lib_nes_env:
scons -C nes_py/nes
mv nes_py/nes/lib_nes_env*.so nes_py
# run the Python test suite
test: lib_nes_env
python3 -m unittest discover .
# clean the build directory
clean:
rm -rf build/ dist/ .eggs/ *.egg-info/ || true
find . -name "*.pyc" -delete
find . -name "__pycache__" -delete
find . -name ".sconsign.dblite" -delete
find . -name "build" | rm -rf
find . -name "lib_nes_env.so" -delete
# build the deployment package
deployment: clean
python3 setup.py sdist bdist_wheel
# ship the deployment package to PyPi
ship: test deployment
twine upload dist/*