File tree 1 file changed +5
-23
lines changed
1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change 1
- # an alias to the python command
2
- PYTHON =python3
3
-
4
- # build the LaiNES code, test the Python interface, and build
5
- # the deployment package
1
+ # build everything
6
2
all : test deployment
7
3
8
- #
9
- # MARK: Development
10
- #
11
-
12
4
# build the LaiNES CPP code
13
5
lib_nes_env :
14
6
scons -C nes_py/nes
15
7
mv nes_py/nes/lib_nes_env* .so nes_py
16
8
17
9
# run the Python test suite
18
10
test : lib_nes_env
19
- ${PYTHON} -m unittest discover .
11
+ python3 -m unittest discover .
20
12
21
- #
22
- # MARK: Deployment
23
- #
24
-
25
- clean_dist :
13
+ # clean the build directory
14
+ clean :
26
15
rm -rf build/ dist/ .eggs/ * .egg-info/ || true
27
-
28
- clean_python_build :
29
16
find . -name " *.pyc" -delete
30
17
find . -name " __pycache__" -delete
31
-
32
- clean_cpp_build :
33
18
find . -name " .sconsign.dblite" -delete
34
19
find . -name " build" | rm -rf
35
20
find . -name " lib_nes_env.so" -delete
36
21
37
- # clean the build directory
38
- clean : clean_dist clean_python_build clean_cpp_build
39
-
40
22
# build the deployment package
41
23
deployment : clean
42
- ${PYTHON} setup.py sdist bdist_wheel
24
+ python3 setup.py sdist bdist_wheel
43
25
44
26
# ship the deployment package to PyPi
45
27
ship : test deployment
You can’t perform that action at this time.
0 commit comments