flutter/packages/flutter_tools
Chris Bracken 379a2d5654
Push /usr/bin to front of PATH for ios-deploy runs (#19281)
ios-deploy relies on LLDB.framework, which relies on /usr/bin/python and
the 'six' module that's installed on the system. However, it appears to
use the first version of Python on PATH, rather than explicitly
specifying the system install.  If a user has a custom install of Python
(e.g., via Homebrew or MacPorts) ahead of the system Python on their
PATH, LLDB.framework will pick up that version instead. If the user
hasn't installed the 'six' module, ios-deploy will fail with a
relatively cryptic error message.

This patch pushes /usr/bin to the front of PATH for the duration of the
ios-deploy run to avoid this scenario.

This patch also removes checks for package six.

Neither Flutter nor any of its direct dependencies/tooling relies on
package six. ios-deploy depends on LLDB.framework (included with Xcode),
which relies on a Python script that imports this package but uses
whichever Python is at the front of the path. Flutter now invokes
ios-deploy with a PATH with /usr/bin forced to the front in order to
avoid this problem.

We could have retained the check out of paranoia, but this seems
unnecessary since it's entirely possible LLDB.framework may one day drop
this dependency, in which case I'd expect the base system install of
Python would likely drop it as well.
2018-07-11 17:33:06 -07:00
..
bin Use runTests in fuchsia tester. (#19178) 2018-07-09 16:13:10 -07:00
doc Remove note about port being removed (#19263) 2018-07-11 15:22:51 +01:00
gradle Make Gradle script support Flutter-as-lib (#18633) 2018-06-20 16:07:05 +02:00
ide_templates/intellij Spelling (#15229) 2018-03-06 21:36:03 -08:00
lib Push /usr/bin to front of PATH for ios-deploy runs (#19281) 2018-07-11 17:33:06 -07:00
schema Add module template for Android (#18697) 2018-06-22 18:19:37 +02:00
templates Fix path of ios module template files (#19037) 2018-07-09 11:56:39 +02:00
test Push /usr/bin to front of PATH for ios-deploy runs (#19281) 2018-07-11 17:33:06 -07:00
tool Add emulator.getEmulators and emulator.launch to daemon (#17466) 2018-05-22 07:39:08 +01:00
analysis_options.yaml re-write flutter analyze to use the analysis server (#16979) 2018-05-10 09:48:40 -07:00
BUILD.gn Leave source list empty for Fuchsia targets. (#15337) 2018-03-12 15:38:32 +01:00
pubspec.yaml Revert "Roll engine to fed2ea458ed49088d33eddabc546ba56d600c717 (includes dart roll) (#19044)" (#19276) 2018-07-11 12:48:55 -07:00
README.md Fix capitalization in README.md (#16788) 2018-04-20 01:02:44 -07:00

Flutter Tools

Tools for building Flutter applications.

To run the tests, ensure that no devices are connected, then navigate to flutter_tools and execute:

../../bin/cache/dart-sdk/bin/pub run test -j1