Unverified Commit 4e5c6c7b by Tianqi Chen Committed by GitHub

[CI] better deletion script for pycache (#4635)

parent 00c98e24
......@@ -37,7 +37,7 @@ mv out docs/_build/html/jsdoc
make javadoc
mv jvm/core/target/site/apidocs docs/_build/html/javadoc
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
find . -type f -path "*.pyc" | xargs rm -f
cd docs
PYTHONPATH=`pwd`/../python make html
......
......@@ -24,6 +24,8 @@ export PYTHONPATH=python:topi/python
export TVM_BIND_THREADS=0
export OMP_NUM_THREADS=1
find . -type f -path "*.pyc" | xargs rm -f
# Rebuild cython
make cython3
......
......@@ -24,7 +24,8 @@ export LD_LIBRARY_PATH="build:${LD_LIBRARY_PATH:-}"
export TVM_BIND_THREADS=0
export TVM_NUM_THREADS=2
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f
# Test TVM
make cython3
......
......@@ -24,7 +24,7 @@ export PYTHONPATH=python:topi/python
# Rebuild cython
make cython3
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
rm -rf topi/python/topi/*.pyc topi/python/topi/*/*.pyc topi/python/topi/*/*/*.pyc topi/python/topi/*/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f
python3 -m pytest -v topi/tests/python/nightly
......@@ -24,7 +24,7 @@ export PYTHONPATH=python:topi/python
# Rebuild cython
make cython3
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
rm -rf topi/python/topi/*.pyc topi/python/topi/*/*.pyc topi/python/topi/*/*/*.pyc topi/python/topi/*/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f
python3 -m pytest -v topi/tests/python
......@@ -21,7 +21,8 @@ set -u
export PYTHONPATH=python:topi/python
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f
TVM_FFI=ctypes python3 -m pytest -v tests/python/unittest
make cython3
......
......@@ -21,7 +21,9 @@ set -u
export PYTHONPATH=python:vta/python:topi/python
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc python/tvm/*/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f
rm -rf ~/.tvm
# Rebuild cython
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment