We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ccb6a commit 92ef83aCopy full SHA for 92ef83a
1 file changed
clean.sh
@@ -0,0 +1,31 @@
1
+#!/bin/bash
2
+
3
+pydc_files=`ls -a | grep -E '\.py[dc]$' | xargs`
4
+for v in $pydc_files
5
+do
6
+ echo "del $v"
7
+ rm -f $v
8
+done
9
10
+py_files=`ls -a | grep -E '\.py$' | xargs`
11
+for v in $py_files
12
13
+ if [ "$v" != "__main__.py" ];then
14
15
16
+ fi
17
18
19
+dist_infos=`ls -a | grep -E '\.(dist-info|egg-info)$' | xargs`
20
+for dir in $dist_infos
21
22
+ prod_dirs=`cat $dir/top_level.txt | xargs`
23
+ if [ x"$prod_dirs" != x"" ];then
24
+ echo "del $prod_dirs"
25
+ rm -rf $prod_dirs
26
27
+ echo "del $dir"
28
+ rm -rf $dir
29
30
31
+rm -rf ./__pycache__
0 commit comments