@@ -27,7 +27,8 @@ def checkout(folder, default_branch, cwdp):
2727 newPath = currentPath + "/" + cwdp + folder
2828 print (newPath )
2929 os .chdir (newPath )
30- python_git = subprocess .Popen ("git branch -a" ,shell = True ,stdout = subprocess .PIPE ,stderr = subprocess .PIPE )
30+ python_git = subprocess .Popen ("git branch -a && git tag" , shell = True , stdout = subprocess .PIPE ,
31+ stderr = subprocess .PIPE )
3132 outstd ,errstd = python_git .communicate ()
3233 if branch and branch in str (outstd ) and branch != 'development' : # don't ckeckout development for netpyne
3334 subprocess .call (['git' , 'checkout' , branch ], cwd = './' )
@@ -45,25 +46,29 @@ def main(argv):
4546 main (sys .argv [1 :])
4647
4748os .chdir (os .getcwd ()+ "/../" )
48- # Cloning Repos
49- clone ('https://github.com/openworm/pygeppetto.git' ,'pygeppetto' ,'development' )
50- subprocess .call (['pip' , 'install' , '-e' , '.' ], cwd = './pygeppetto/' )
49+
5150
5251clone ('https://github.com/Neurosim-lab/netpyne.git' ,'netpyne' ,'ui' )
5352subprocess .call (['pip' , 'install' , '-e' , '.' ], cwd = './netpyne/' )
5453
55- clone ('https://github.com/openworm/org.geppetto.frontend.jupyter.git' ,'org.geppetto.frontend.jupyter' ,'development' )
56- with open ('npm_frontend_jupyter_log' , 'a' ) as stdout :
57- subprocess .call (['npm' , 'install' ], cwd = './org.geppetto.frontend.jupyter/js' , stdout = stdout )
58- subprocess .call (['npm' , 'run' , 'build-dev' ], cwd = './org.geppetto.frontend.jupyter/js' )
54+
5955
6056# We can't clone org.geppetto.frontend as a regular submodule because Travis doesn't have .gitmodules in the zip
6157# subprocess.call(['git', 'submodule', 'update', '--init'], cwd='./')
6258clone ('https://github.com/openworm/org.geppetto.frontend.git' ,'geppetto' ,'development' ,'netpyne_ui/' , False , 'geppetto' )
6359clone ('https://github.com/MetaCell/geppetto-netpyne.git' ,'geppetto-netpyne' ,'development' ,'netpyne_ui/geppetto/src/main/webapp/extensions/' )
6460
61+ branch = None
62+ # Cloning Repos
63+ clone ('https://github.com/openworm/pygeppetto.git' ,'pygeppetto' ,'development' )
64+ subprocess .call (['pip' , 'install' , '-e' , '.' ], cwd = './pygeppetto/' )
65+ clone ('https://github.com/openworm/org.geppetto.frontend.jupyter.git' ,'org.geppetto.frontend.jupyter' ,'development' )
66+ with open ('npm_frontend_jupyter_log' , 'a' ) as stdout :
67+ subprocess .call (['npm' , 'install' ], cwd = './org.geppetto.frontend.jupyter/js' , stdout = stdout )
68+ subprocess .call (['npm' , 'run' , 'build-dev' ], cwd = './org.geppetto.frontend.jupyter/js' )
69+
6570print ("Enabling Geppetto NetPyNE Extension ..." )
66- geppetto_configuration = os .path .join (os .path .dirname (__file__ ), './utilities/GeppettoConfiguration.json' )
71+ geppetto_configuration = os .path .join (os .path .dirname (__file__ ), './utilities/GeppettoConfiguration.json.copyme ' )
6772copyfile (geppetto_configuration , './netpyne_ui/geppetto/src/main/webapp/GeppettoConfiguration.json' )
6873
6974# Installing and building
@@ -75,10 +80,10 @@ def main(argv):
7580print ("Installing jupyter_geppetto python package ..." )
7681subprocess .call (['pip' , 'install' , '-e' , '.' ], cwd = './org.geppetto.frontend.jupyter' )
7782print ("Installing jupyter_geppetto Jupyter Extension ..." )
78- subprocess .call (['jupyter' , 'nbextension' , 'install' , '--py' , '--symlink' , '--user ' , 'jupyter_geppetto' ], cwd = './org.geppetto.frontend.jupyter' )
79- subprocess .call (['jupyter' , 'nbextension' , 'enable' , '--py' , '--user ' , 'jupyter_geppetto' ], cwd = './org.geppetto.frontend.jupyter' )
80- subprocess .call (['jupyter' , 'nbextension' , 'enable' , '--py' , 'widgetsnbextension' ], cwd = './org.geppetto.frontend.jupyter' )
81- subprocess .call (['jupyter' , 'serverextension' , 'enable' , '--py' , 'jupyter_geppetto' ], cwd = './org.geppetto.frontend.jupyter' )
83+ subprocess .call (['jupyter' , 'nbextension' , 'install' , '--py' , '--symlink' , '--sys-prefix ' , 'jupyter_geppetto' ], cwd = './org.geppetto.frontend.jupyter' )
84+ subprocess .call (['jupyter' , 'nbextension' , 'enable' , '--py' , '--sys-prefix ' , 'jupyter_geppetto' ], cwd = './org.geppetto.frontend.jupyter' )
85+ subprocess .call (['jupyter' , 'nbextension' , 'enable' , '--py' , '--sys-prefix' , ' widgetsnbextension' ], cwd = './org.geppetto.frontend.jupyter' )
86+ subprocess .call (['jupyter' , 'serverextension' , 'enable' , '--sys-prefix' , '-- py' , 'jupyter_geppetto' ], cwd = './org.geppetto.frontend.jupyter' )
8287
8388print ("Installing NetPyNE UI python package ..." )
8489subprocess .call (['pip' , 'install' , '-e' , '.' ], cwd = '.' )
0 commit comments