Kaydet (Commit) bc74ee03 authored tarafından Petri Lehtinen's avatar Petri Lehtinen

Remove __pycache__ directories correctly on OpenBSD

The find utility of OpenBSD doesn't support the "-exec cmd {} +"
action. Change it to use "-depth -exec cmd {} ;" instead.

Also, remove __pycache__ before *.py[co], as most bytecode files are
in __pycache__ directories. Only those generated by Python 2 under
Doc/tools are not.

Closes #13326.
üst 395ca723
...@@ -1231,8 +1231,8 @@ TAGS:: ...@@ -1231,8 +1231,8 @@ TAGS::
# Sanitation targets -- clean leaves libraries, executables and tags # Sanitation targets -- clean leaves libraries, executables and tags
# files, which clobber removes as well # files, which clobber removes as well
pycremoval: pycremoval:
-find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
-find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
-find $(srcdir) -name '__pycache__' -exec rmdir {} '+'
rmtestturds: rmtestturds:
-rm -f *BAD *GOOD *SKIPPED -rm -f *BAD *GOOD *SKIPPED
......
...@@ -208,6 +208,11 @@ Library ...@@ -208,6 +208,11 @@ Library
- Issue #10860: http.client now correctly handles an empty port after port - Issue #10860: http.client now correctly handles an empty port after port
delimiter in URLs. delimiter in URLs.
Build
-----
- Issue #13326: Clean __pycache__ directories correctly on OpenBSD.
Tests Tests
----- -----
......
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