Skip to content

Commit e82e4bc

Browse files
authored
chore(shared-data): clean build directory and check json changes during make wheel (#6610)
* chore(shared-data): clean dist during make wheel and check json changes * make requested changes * make build target depend on the clean target
1 parent ef722ba commit e82e4bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shared-data/python/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ json_sources = $(filter %.json,$(shell $(SHX) find ..))
3636
twine_auth_args := --username $(pypi_username) --password $(pypi_password)
3737
twine_repository_url ?= $(pypi_test_upload_url)
3838

39+
clean_cmd = $(SHX) rm -rf build $(BUILD_DIR) .coverage coverage.xml '*.egg-info' ' **/__pycache__' '**/*.pyc'
40+
3941
.PHONY: setup
4042
setup: setup-py
4143

@@ -47,17 +49,16 @@ setup-py:
4749

4850
.PHONY: clean
4951
clean:
50-
shx rm -rf $(BUILD_DIR)
52+
$(clean_cmd)
5153

5254

5355
.PHONY: wheel
5456
wheel: $(wheel_file)
5557

5658

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
5860
$(SHX) mkdir -p build
5961
$(python) setup.py $(wheel_opts) bdist_wheel
60-
$(SHX) rm -rf build *.egg_info
6162
$(SHX) ls $(BUILD_DIR)
6263

6364

0 commit comments

Comments
 (0)