chore(cython): Recusively remove compiled module files
Modify clean_cythoned.sh to recusively delete compilation artifacts.
This commit is contained in:
3
tools/clean.sh
Executable file
3
tools/clean.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
find $1 \( -name '*.c' -or -name '*.so' -or -name '*.pyc' \) -delete
|
@@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
rm -f $1/*.c
|
|
||||||
rm -f $1/*.so
|
|
||||||
rm -f $1/*.pyc
|
|
10
tox.ini
10
tox.ini
@@ -24,13 +24,13 @@ envlist = py26,
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = -r{toxinidir}/tools/test-requires
|
deps = -r{toxinidir}/tools/test-requires
|
||||||
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
|
||||||
nosetests {posargs}
|
nosetests {posargs}
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
deps = -r{toxinidir}/tools/test-requires
|
deps = -r{toxinidir}/tools/test-requires
|
||||||
nose-cprof
|
nose-cprof
|
||||||
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
|
||||||
nosetests \
|
nosetests \
|
||||||
--with-cprofile \
|
--with-cprofile \
|
||||||
--cprofile-stats-erase \
|
--cprofile-stats-erase \
|
||||||
@@ -41,7 +41,7 @@ commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
|||||||
deps = -r{toxinidir}/tools/test-requires
|
deps = -r{toxinidir}/tools/test-requires
|
||||||
cython
|
cython
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
|
||||||
nosetests \
|
nosetests \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
|||||||
deps = -r{toxinidir}/tools/test-requires
|
deps = -r{toxinidir}/tools/test-requires
|
||||||
cython
|
cython
|
||||||
basepython = python3.3
|
basepython = python3.3
|
||||||
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
|
||||||
nosetests \
|
nosetests \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
|||||||
deps = -r{toxinidir}/tools/test-requires
|
deps = -r{toxinidir}/tools/test-requires
|
||||||
cython
|
cython
|
||||||
basepython = python3.4
|
basepython = python3.4
|
||||||
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
|
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
|
||||||
nosetests \
|
nosetests \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user