-
Notifications
You must be signed in to change notification settings - Fork 384
Description
[issue]
I think 'Invoke' is best choice for running tasks, but there are some week points about vendor.
For example, we install 'invoke' by 'pip3' in the case of using python3 virtual environment created by 'pyvenv' or 'virtualenv', SyntaxError message will appear.
In spite of the a�bove message, Install has success.(however it looks misshapen...)
[cause]
AFAIK, the cause of the above issue is that both 'yaml2' and 'yaml3' in 'vendor' are installed.
Hopefully, managing 3rd party package should be replace more better method.
(using 'install_requires' of setuptools)
However�, it is not so easy to replace and test.
Then, first of all, either yaml2 or yaml3 should be required depending on the situation(python3 or python2).
This change will be very small and easy.
[pip install log]
Downloading/unpacking invoke
Downloading invoke-0.10.1-py2.py3-none-any.whl (166kB): 166kB downloaded
Installing collected packages: invoke
*** Error compiling '/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/constructor.py'...
File "/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/constructor.py", line 130
except TypeError, exc:
^
SyntaxError: invalid syntax
*** Error compiling '/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/reader.py'...
File "/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/reader.py", line 158
except UnicodeDecodeError, exc:
^
SyntaxError: invalid syntax
*** Error compiling '/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/resolver.py'...
File "/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/resolver.py", line 171
re.compile(ur'''^(?:yes|Yes|YES|no|No|NO
|true|True|TRUE|false|False|FALSE
|on|On|ON|off|Off|OFF)$''', re.X),
^
SyntaxError: invalid syntax
*** Error compiling '/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/scanner.py'...
File "/private/tmp/pip_build_root/invoke/invoke/vendor/yaml2/scanner.py", line 1427
except UnicodeDecodeError, exc:
^
SyntaxError: invalid syntax
Successfully installed invoke
Cleaning up...