Update python script and building manual

This commit is contained in:
sephiroth99 2014-01-14 01:05:10 -05:00
parent faa75c9407
commit 36d731186e
2 changed files with 7 additions and 5 deletions

View File

@ -8,8 +8,10 @@ video drivers for your card.
### Windows
* Windows 8 or 8.1
* Visual Studio 2013
* [Python 2.7](http://www.python.org/download/releases/2.7.5/)
* [Python 2.7](http://www.python.org/download/releases/2.7.6/)
* If you are on Windows 8, you will also need the [Windows 8.1 SDK](http://msdn.microsoft.com/en-us/windows/desktop/bg162891)
Ensure Python is in your PATH (`C:\Python27\`).

View File

@ -26,7 +26,7 @@ def main():
])
# Check python version.
if sys.version_info < (2, 7):
if not sys.version_info[:2] == (2, 7):
print('ERROR: python 2.7 required')
print('(unfortunately gyp doesn\'t work with 3!)')
sys.exit(1)
@ -35,9 +35,9 @@ def main():
# Grab Visual Studio version and execute shell to set up environment.
if sys.platform == 'win32':
vs_version = import_vs_environment()
if not vs_version:
print('ERROR: Visual Studio not found!')
print('Ensure you have a VS1XXCOMNTOOLS environment variable!')
if not vs_version == 2013:
print('ERROR: Visual Studio 2013 not found!')
print('Ensure you have the VS120COMNTOOLS environment variable!')
sys.exit(1)
return