Skip to content

Commit 8ec6e32

Browse files
committed
Improved formatting and suppressed unnecessary terminal output.
1 parent 95af823 commit 8ec6e32

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

python/setup.py

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,65 +47,63 @@
4747
command = "%s/conda config --system --set auto_update_conda false" % bin_dir
4848
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
4949

50-
print("Installing package: 'mdtraj'")
50+
print("Installing package: mdtraj")
5151
command = "%s/conda install -y -q -c omnia mdtraj" % bin_dir
5252
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
5353

54-
print("Installing package: 'ambertools'")
54+
print("Installing package: ambertools")
5555
command = "%s/conda install -y -q -c ambermd ambertools" % bin_dir
5656
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
5757

5858
print("Upgrading pip")
5959
command = "%s/pip install --upgrade pip" % bin_dir
6060
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
6161

62-
print("Installing package: 'watchdog'")
62+
print("Installing package: watchdog")
6363
command = "%s/pip install watchdog" % bin_dir
6464
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
6565

66-
print("Installing package: 'mdanalysis'")
66+
print("Installing package: mdanalysis")
6767
command = "%s/pip install mdanalysis" % bin_dir
6868
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
6969

70-
print("Installing package: 'jupyter'")
70+
print("Installing package: jupyter")
7171
command = "%s/pip install jupyter" % bin_dir
7272
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
7373

74-
print("Installing package: 'duecredit'")
74+
print("Installing package: duecredit")
7575
command = "%s/pip install duecredit" % bin_dir
7676
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
7777

78-
print("Installing package: 'pygtail'")
78+
print("Installing package: pygtail")
7979
command = "%s/pip install pygtail" % bin_dir
8080
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
8181

82-
print("Installing package: 'matplotlib'")
82+
print("Installing package: matplotlib")
8383
command = "%s/pip install matplotlib" % bin_dir
8484
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
8585

86-
print("Installing package: 'fileupload'")
86+
print("Installing package: fileupload")
8787
command = "%s/pip install fileupload" % bin_dir
8888
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
8989

90-
print("Activating notebook extension: 'fileupload'")
91-
command = "%s/jupyter-nbextension install fileupload --py --sys-prefix" % bin_dir
90+
print("Activating notebook extension: fileupload")
91+
command = "%s/jupyter-nbextension install fileupload --py --sys-prefix --log-level=0" % bin_dir
9292
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
93-
9493
command = "%s/jupyter-nbextension enable fileupload --py --sys-prefix" % bin_dir
9594
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
9695

97-
print("Installing package: 'nglview'")
96+
print("Installing package: nglview")
9897
command = "%s/pip --no-cache-dir install nglview" % bin_dir
9998
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
10099

101-
print("Activating notebook extension: 'nglview'")
102-
command = "%s/jupyter-nbextension install nglview --py --sys-prefix" % bin_dir
100+
print("Activating notebook extension: nglview")
101+
command = "%s/jupyter-nbextension install nglview --py --sys-prefix --log-level=0" % bin_dir
103102
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
104-
105103
command = "%s/jupyter-nbextension enable nglview --py --sys-prefix" % bin_dir
106104
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
107105

108-
print("Patching 'mdtraj' NetCDF writer")
106+
print("Patching mdtraj NetCDF writer")
109107
command = ("%s/curl -k -s https://raw.githubusercontent.com/scipy/scipy/master/scipy/io/netcdf.py"
110108
"> %s/python3.5/site-packages/scipy/io/netcdf.py"
111109
) % (bin_dir, lib_dir)
@@ -114,7 +112,6 @@
114112
print("Fixing conda NetCDF install")
115113
command = "%s/conda clean -all -y -q" % bin_dir
116114
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
117-
118115
command = "%s/conda update -y -q netcdf4" % bin_dir
119116
subprocess.run(command, shell=True, stdout=subprocess.PIPE)
120117

0 commit comments

Comments
 (0)