From fa7edc21983498164e8a547150ea50a371150a83 Mon Sep 17 00:00:00 2001 From: Ruifeng Zheng Date: Thu, 19 Sep 2024 22:53:46 +0800 Subject: [PATCH 1/2] init --- dev/py-cleanup.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 dev/py-cleanup.sh diff --git a/dev/py-cleanup.sh b/dev/py-cleanup.sh new file mode 100755 index 000000000000..5f1622377cb6 --- /dev/null +++ b/dev/py-cleanup.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Utility for temporary files cleanup in 'python'. +# usage: ./dev/py-cleanup.sh + +set -ex + +SPARK_HOME="$(cd "`dirname $0`"/..; pwd)" +cd "$SPARK_HOME" + +rm -rf python/target +rm -rf python/lib/pyspark.zip +rm -rf python/docs/build +rm -rf python/docs/source/reference/*/api From 33088ad4703fde813d5a791c0e8b6ad7d65fddf9 Mon Sep 17 00:00:00 2001 From: Ruifeng Zheng Date: Thu, 19 Sep 2024 22:55:50 +0800 Subject: [PATCH 2/2] init --- dev/{py-cleanup.sh => py-cleanup} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename dev/{py-cleanup.sh => py-cleanup} (97%) diff --git a/dev/py-cleanup.sh b/dev/py-cleanup similarity index 97% rename from dev/py-cleanup.sh rename to dev/py-cleanup index 5f1622377cb6..6a2edd104017 100755 --- a/dev/py-cleanup.sh +++ b/dev/py-cleanup @@ -18,7 +18,7 @@ # # Utility for temporary files cleanup in 'python'. -# usage: ./dev/py-cleanup.sh +# usage: ./dev/py-cleanup set -ex