Skip to content

Commit

Permalink
building bootstrap file.
Browse files Browse the repository at this point in the history
  • Loading branch information
INADA Naoki committed Apr 30, 2012
1 parent ce36902 commit 730b7a9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions make_bootstrap.py
@@ -0,0 +1,19 @@
import virtualenv

extra = """
import sys
def after_install(options, home_dir):
if sys.platform == 'win32':
bin = 'Scripts'
else:
bin = 'bin'
pip = os.path.join(home_dir, bin, 'pip')
subprocess.call([pip, 'install',
'http://gevent.googlecode.com/files/gevent-1.0b2.tar.gz'])
subprocess.call([pip, 'install', 'msgpack-python'])
subprocess.call([pip, 'install',
'https://github.com/KLab/fluenpy/tarball/master'])
"""

with open('fluenpy-bootstrap.py', 'w') as f:
f.write(virtualenv.create_bootstrap_script(extra))

0 comments on commit 730b7a9

Please sign in to comment.