Skip to content

ENH: make clean now removes compiled .c and .pyd files. - #1584

Merged
stefanv merged 2 commits into
scikit-image:masterfrom
JDWarner:enh_make_clean
Jul 12, 2015
Merged

stefanv merged 2 commits into
scikit-image:masterfrom
JDWarner:enh_make_clean

Conversation

@JDWarner

@JDWarner JDWarner commented Jul 8, 2015

Copy link
Copy Markdown
Contributor

As reported by @grlee77 as a sidenote in #1583, make clean previously did not remove all compiled files.

Now the clean target removes Cythonized .c files as well as .pyd files, which are the Windows equivalent of .so, for those using Cygwin or similar to have Makefile support on Windows.

@grlee77

grlee77 commented Jul 8, 2015

Copy link
Copy Markdown
Contributor

see my comment in #1583 about not accidentally removing other .c files in the codebase not generated by cython
e.g.
restoration/unwrap_2d_ljmu.c
restoration/unwrap_3d_ljmu.c

I guess a .c file should only be removed if there is a matching .pyx file

@JDWarner

JDWarner commented Jul 8, 2015

Copy link
Copy Markdown
Contributor Author

@grlee77 You're right, time for some RegEx-fu.

@JDWarner

JDWarner commented Jul 8, 2015

Copy link
Copy Markdown
Contributor Author

@grlee77 I think this handles it.

@grlee77

grlee77 commented Jul 8, 2015

Copy link
Copy Markdown
Contributor

this works for me. thanks @JDWarner

@JDWarner
JDWarner force-pushed the enh_make_clean branch 2 times, most recently from 32510b9 to a077e9c Compare July 12, 2015 17:45
stefanv added a commit that referenced this pull request Jul 12, 2015
ENH: `make clean` now removes compiled .c and .pyd files
@stefanv
stefanv merged commit 80397bd into scikit-image:master Jul 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants