mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 17:17:07 +08:00
Remove only .c files associated with .pyx source.
This commit is contained in:
@@ -4,7 +4,8 @@ all:
|
||||
python setup.py build_ext --inplace
|
||||
|
||||
clean:
|
||||
find . -name "*.so" -o -name "*.pyc" -o -name "*.pyx.md5" -o -name "*.c" -o -name "*.pyd" | xargs rm -f
|
||||
find . -name "*.so" -o -name "*.pyc" -o -name "*.pyx.md5" -o -name "*.pyd" | xargs rm -f
|
||||
find . -name "*.pyx" -exec ./tools/rm_pyx_c_file.sh {} \;
|
||||
|
||||
test:
|
||||
python -c "import skimage, sys, io; sys.exit(skimage.test_verbose())"
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Accepts a .pyx file path and deletes an associated .c file, if present.
|
||||
filename="${1%.*}".c
|
||||
if [ -e "$filename" ]; then
|
||||
rm -f "$filename";
|
||||
fi
|
||||
Reference in New Issue
Block a user