GET DEPOT TOOLS
LINUX / MAC
Clone the depot_tools repository:
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Add depot_tools to the front of your PATH (you will probably want to put this in your ~/.bashrc
or ~/.zshrc
). Assuming you cloned depot_tools to /path/to/depot_tools
:
$ export PATH=/path/to/depot_tools:$PATH
WINDOWS
Download the depot_tools bundle and extract it somewhere.
Warning | DO NOT use drag-n-drop or copy-n-paste extract from Explorer, this will not extract the hidden “.git” folder which is necessary for depot_tools to autoupdate itself. You can use “Extract all…” from the context menu though. |
Add depot_tools to the front of your PATH (must be ahead of any installs of Python). Assuming you unzipped the bundle to C:\workspace\depot_tools
:
With Administrator access:
Control Panel → System and Security → System → Advanced system settings
Modify the PATH system variable to include C:\workspace\depot_tools
.
Without Administrator access:
Control Panel → User Accounts → User Accounts → Change my environment variables
Add a PATH user variable: C:\workspace\depot_tools;%PATH%
.
From a cmd.exe
shell, run the command gclient
(without arguments). On first run, gclient will install all the Windows-specific bits needed to work with the code, including msysgit and python.
Note |
|