Skip to content

CLN: Small fix to clean_pyc task #4124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2013

Conversation

jtratner
Copy link
Contributor

@jtratner jtratner commented Jul 4, 2013

The previous clean_pyc wasn't actually removing *.pyc files - apparently each branch of find needs its own exec (I guess?). Anyways this works now.

@cpcloud
Copy link
Member

cpcloud commented Jul 4, 2013

Hm. OK didn’t realize there was a notion of precedence here. u could try the -delete option but don't spend too much time here if this works then great.

@@ -5,7 +5,7 @@ clean: clean_pyc
-find . -name '*.so' -exec rm {} \;

clean_pyc:
-find . -name '*.pyc' -or -name '*.pyo' -exec rm {} \;
-find . -name '*.pyc' -exec rm {} \; -or -name '*.pyo' -exec rm {} \;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could also do find . -regex '.*\.py[co]' -delete

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpcloud -delete isn't universally supported (from what I've read), which is why I've avoided it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to know. ok then. merging

cpcloud added a commit that referenced this pull request Jul 4, 2013
@cpcloud cpcloud merged commit 1d58bf1 into pandas-dev:master Jul 4, 2013
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.

2 participants