Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New build

  • Loading branch information...
commit feb3aac7ed5e944917dfc17d1b16dd9ecc5d2bb8 1 parent 3387c59
Armin Ronacher authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 sdl-quickstart.py
8 sdl-quickstart.py
View
@@ -23,6 +23,7 @@
from subprocess import Popen
+MERCURIAL_URL = 'http://hg.libsdl.org/SDL'
template_re = re.compile(r'%([a-zA-Z]+)%')
@@ -68,7 +69,12 @@ def main():
f.write(apply_template(value, context))
f.close()
print 'Cloning SDL 1.3'
- Popen(['hg', 'clone', 'http://hg.libsdl.org/SDL', 'libs/sdl-1.3']).wait()
+ try:
+ Popen(['hg', 'clone', MERCURIAL_URL, 'libs/sdl-1.3']).wait()
+ except OSError:
+ print 'Could not pull SDL because hg is not installed.'
+ print 'Please pull on your own into libs/sdl-1.3 from '
+ print MERCURIAL_URL
print 'All done'
print
print 'Now build SDL 1.3 in the libs folder for your platform'
Please sign in to comment.
Something went wrong with that request. Please try again.