Skip to content

Commit e1333db

Browse files
authored
Delete src/third_party in install_deps.bash. (#1723)
This can cause issues when running butler, e.g. when upgrading an existing Python 2 environment to Python 3.
1 parent 7608b17 commit e1333db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

local/install_deps.bash

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
dir=$(dirname "$0")
18+
19+
# Delete third_party to prevent import issues while doing `python butler.py
20+
# bootstrap`.
21+
rm -rf "$dir"/../src/third_party
22+
1723
if [ "$(uname)" == "Darwin" ]; then
18-
$(dirname "$0")/install_deps_macos.bash $*
24+
"$dir"/install_deps_macos.bash $*
1925
else
20-
$(dirname "$0")/install_deps_linux.bash $*
26+
"$dir"/install_deps_linux.bash $*
2127
fi

0 commit comments

Comments
 (0)