Skip to content

Commit

Permalink
add wrapper to make GYP_PARALLEL=1 work for build\gyp_chromium
Browse files Browse the repository at this point in the history
This is a workaround for multiprocessing on Windows. Importing in Python on
Windows doesn't search for imports that don't end in .py (and aren't
directories with an __init__.py). So, add this wrapper to avoid having
people change their command line to add a .py when running gyp_chromium.

R=dmazzoni@chromium.org

Review URL: https://codereview.chromium.org/11066021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160151 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
scottmg@google.com committed Oct 4, 2012
1 parent 4cddafe commit 23ed434
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/gyp_chromium.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This is a workaround for multiprocessing on Windows. Importing in Python on
# Windows doesn't search for imports that don't end in .py (and aren't
# directories with an __init__.py). So, add this wrapper to avoid having
# people change their command line to add a .py when running gyp_chromium.
__import__('gyp_chromium')

0 comments on commit 23ed434

Please sign in to comment.