Lei Zhang
476989e7b7
Return str in describe() as said by the blurb.
2016-03-11 15:30:38 -05:00
Lei Zhang
9149a66ca4
Fix the corner case in version generation script.
...
When the given directory is not inside the SPIRV-Tools project,
describe() returns a str instance instead of bytes instance
in Python3, which will case problem when calling decode() on it.
2016-03-11 15:06:15 -05:00
Lei Zhang
f7e63786a9
Add comments to explain why calling decode().
2016-03-07 13:44:09 -05:00
Lei Zhang
c15683906c
Run pyformat with -s 4 --force_quote_type=single.
2016-03-06 13:00:58 -05:00
Lei Zhang
703b0f7ab4
Imporve compatibility with Python3.
...
* Use print_function from __future__ to tackle the print syntax
change.
* In Python3 str and bytes are no longer the same thing. Need
proper decode.
2016-03-06 12:58:13 -05:00
David Neto
3deecefde5
If no tag in the repo, then show the commit hash
2016-02-24 12:42:13 -05:00
David Neto
b38ac4bae6
Use subprocess.Popen, hoping for Windows portability
...
Replaces use of subprocess.check_output
2016-02-23 18:09:50 -05:00
qining
4e797f8236
Implement --version for spirv-tools
...
'spirv-as --version', 'spirv-dis --version' and 'spirv-val --version'
will display version information.
2016-02-23 14:14:23 -05:00