Add dependencies and finish the py-tornado package.
This adds the following packages: py-backports-shutil-get-terminal-size py-nbformat py-backports-ssl-match-hostname py-pathlib2 py-entrypoints py-pickleshare py-futures py-pip py-ipykernel py-prompt-toolkit py-ipython-genutils py-ptyprocess py-ipywidgets py-simplegeneric py-jupyter-client py-singledispatch py-jupyter-console py-terminado py-jupyter-core py-traitlets py-jupyter-notebook py-wcwidth py-monotonic py-widgetsnbextension py-nbconvert
This commit is contained in:

committed by
Todd Gamblin

parent
6a5185a2a7
commit
8c650303ff
@@ -22,6 +22,7 @@
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
import os
|
||||
from spack import *
|
||||
|
||||
|
||||
@@ -32,9 +33,17 @@ class Npm(Package):
|
||||
# base http://www.npmjs.com/
|
||||
url = "https://registry.npmjs.org/npm/-/npm-3.10.5.tgz"
|
||||
|
||||
version('3.10.9', 'ec1eb22b466ce87cdd0b90182acce07f')
|
||||
version('3.10.5', '46002413f4a71de9b0da5b506bf1d992')
|
||||
|
||||
depends_on('node-js', type='build')
|
||||
depends_on('node-js')
|
||||
|
||||
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
||||
npm_config_cache_dir = "%s/npm-cache" % dependent_spec.prefix
|
||||
if not os.path.isdir(npm_config_cache_dir):
|
||||
mkdir(npm_config_cache_dir)
|
||||
run_env.set('npm_config_cache', npm_config_cache_dir)
|
||||
spack_env.set('npm_config_cache', npm_config_cache_dir)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure('--prefix={0}'.format(prefix))
|
||||
|
Reference in New Issue
Block a user