Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: third_party/cython/cp_python_binary_modules.py

Issue 565673004: cython: Fix creation error when directory is created by a parallel process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cython/cp_python_binary_modules.py
diff --git a/third_party/cython/cp_python_binary_modules.py b/third_party/cython/cp_python_binary_modules.py
index dd38e647131ebbc25f682d634f19cc6095e23c89..cd7505ba21fd582333e1779f1c3143f063b45946 100644
--- a/third_party/cython/cp_python_binary_modules.py
+++ b/third_party/cython/cp_python_binary_modules.py
@@ -29,7 +29,11 @@ def main():
opts = parser.parse_args()
if not os.path.exists(opts.destination_dir):
- os.makedirs(opts.destination_dir)
+ try:
+ os.makedirs(opts.destination_dir)
+ except:
+ # Ignore errors on directory creation.
+ pass
for mapping in opts.mappings:
[module, library] = mapping.split('=')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698