msanders / cider

Hassle-free bootstrapping with Homebrew.
https://pypi.python.org/pypi/cider/
MIT License
839 stars 25 forks source link

Fix command line tools checking. #21

Closed keitaoouchi closed 9 years ago

keitaoouchi commented 9 years ago

In v1.1.4, cider always attempt to install command line tool, but it has already been installed.

% cider restore
==> Installing the Command Line Tools (expect a GUI popup):
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Whoops! `/usr/bin/xcode-select --install` failed with code 1

In my environment(Python2.7.8), spawn(["/usr/bin/xcode-select", "-print-path"], check_output=True, debug=self.debug, env=self.env) returns string with newline('/Applications/Xcode.app/Contents/Developer\n') and os.path.isdir returns False with newline:

>>> os.path.isdir('/Applications/Xcode.app/Contents/Developer\n')
False