2012-12-16 08:24:07 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
import os, subprocess, sys
|
|
|
|
subprocess.call(['python', 'virtualenv.py', 'flask'])
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
bin = 'Scripts'
|
|
|
|
else:
|
|
|
|
bin = 'bin'
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask'])
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-login'])
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-openid'])
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', '--no-deps', 'lamson', 'chardet', 'flask-mail'])
|
|
|
|
else:
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-mail'])
|
2012-12-31 19:52:43 +00:00
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'sqlalchemy==0.7.9'])
|
2012-12-16 08:24:07 +00:00
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-sqlalchemy'])
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'sqlalchemy-migrate'])
|
2013-04-15 06:13:17 +00:00
|
|
|
if sys.platform != 'win32':
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'mysql-python'])
|
2012-12-16 08:24:07 +00:00
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-whooshalchemy'])
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-wtf'])
|
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flask-babel'])
|
2013-02-20 06:59:54 +00:00
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'guess-language'])
|
2012-12-16 08:24:07 +00:00
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'flup'])
|
2013-03-10 04:17:06 +00:00
|
|
|
subprocess.call([os.path.join('flask', bin, 'pip'), 'install', 'coverage'])
|