File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ json_sources = $(filter %.json,$(shell $(SHX) find ..))
36
36
twine_auth_args := --username $(pypi_username ) --password $(pypi_password )
37
37
twine_repository_url ?= $(pypi_test_upload_url )
38
38
39
+ clean_cmd = $(SHX ) rm -rf build $(BUILD_DIR ) .coverage coverage.xml '*.egg-info' ' **/__pycache__' '**/*.pyc'
40
+
39
41
.PHONY : setup
40
42
setup : setup-py
41
43
@@ -47,17 +49,16 @@ setup-py:
47
49
48
50
.PHONY : clean
49
51
clean :
50
- shx rm -rf $( BUILD_DIR )
52
+ $( clean_cmd )
51
53
52
54
53
55
.PHONY : wheel
54
56
wheel : $(wheel_file )
55
57
56
58
57
- $(BUILD_DIR ) /opentrons_shared_data-% -py2.py3-none-any.whl : setup.py $(py_sources )
59
+ $(BUILD_DIR ) /opentrons_shared_data-% -py2.py3-none-any.whl : setup.py $(py_sources ) $( json_sources ) clean
58
60
$(SHX ) mkdir -p build
59
61
$(python ) setup.py $(wheel_opts ) bdist_wheel
60
- $(SHX ) rm -rf build * .egg_info
61
62
$(SHX ) ls $(BUILD_DIR )
62
63
63
64
You can’t perform that action at this time.
0 commit comments