Permalink
Browse files

building bootstrap file.

  • Loading branch information...
1 parent ce36902 commit 730b7a934f4a35a887bcc3f102b7dbdbf359fa87 INADA Naoki committed Apr 30, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 make_bootstrap.py
View
@@ -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.