| Index: recipe_modules/python/example.py
|
| diff --git a/recipe_modules/python/example.py b/recipe_modules/python/example.py
|
| index 4e35c8a9d9352b9d34211c8400bafb5f05adc4b0..d816d95265a9d085205db810463354e5c815f729 100644
|
| --- a/recipe_modules/python/example.py
|
| +++ b/recipe_modules/python/example.py
|
| @@ -5,6 +5,7 @@
|
| """Launches the repo bundler."""
|
|
|
| DEPS = [
|
| + 'path',
|
| 'python',
|
| 'raw_io',
|
| 'step',
|
| @@ -30,6 +31,18 @@ def RunSteps(api):
|
|
|
| api.python.inline('inline', 'print "Hello World!"')
|
|
|
| + # Test "vpython"-based invocation.
|
| + #
|
| + # The "test.py" script has an inline VirtualEnv spec that is read by default
|
| + # when "vpython" is invoked.
|
| + #
|
| + # The second invocation uses an explicit spec with a different package set to
|
| + # verify that the explicit spec is laoded instead of the inline spec.
|
| + api.python('run vpython.inlinespec', api.resource('test.py'),
|
| + args=['--verify-enum34'], venv=True)
|
| + api.python('run vpython.spec', api.resource('test.py'),
|
| + args=['--verify-six'], venv=api.resource('test.vpython'))
|
| +
|
|
|
| def GenTests(api):
|
| yield api.test('basic')
|
|
|