In https://github.com/databricks/cli/pull/1618 we introduced prepare step in which Python wheel folder was cleaned. Now it was cleaned everytime instead of only when there is a build command how it is used to work.
This PR fixes it by only cleaning up dist folder when there is a build command for wheels.
Changes
In https://github.com/databricks/cli/pull/1618 we introduced prepare step in which Python wheel folder was cleaned. Now it was cleaned everytime instead of only when there is a build command how it is used to work.
This PR fixes it by only cleaning up dist folder when there is a build command for wheels.
Fixes #1638
Tests
Added regression test