diff options
author | Eric <muffgaga@gmx.de> | 2016-10-18 16:46:42 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-18 07:46:42 -0700 |
commit | 306eea5e59c982c25b6f932b45dee4504e28bed3 (patch) | |
tree | c466717850f191717938cc4938144faf5ade3403 /lib | |
parent | 4c2af4f888e5556191c08d7e8f38eb6a63acbe7f (diff) | |
download | spack-306eea5e59c982c25b6f932b45dee4504e28bed3.tar.gz spack-306eea5e59c982c25b6f932b45dee4504e28bed3.tar.bz2 spack-306eea5e59c982c25b6f932b45dee4504e28bed3.tar.xz spack-306eea5e59c982c25b6f932b45dee4504e28bed3.zip |
Support for bazel (#2023)
* Add package bazel
* Add support for bazel-based builds
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/create.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py index aa7c42def0..741a320ea7 100644 --- a/lib/spack/spack/cmd/create.py +++ b/lib/spack/spack/cmd/create.py @@ -116,6 +116,10 @@ dependencies_dict = { # FIXME: Add additional dependencies if required. depends_on('scons', type='build')""", + 'bazel': """\ + # FIXME: Add additional dependencies if required. + depends_on('bazel', type='build')""", + 'python': """\ extends('python') @@ -164,6 +168,10 @@ install_dict = { scons('prefix={0}'.format(prefix)) scons('install')""", + 'bazel': """\ + # FIXME: Add logic to build and install here. + bazel()""", + 'python': """\ # FIXME: Add logic to build and install here. setup_py('install', '--prefix={0}'.format(prefix))""", @@ -238,7 +246,8 @@ class BuildSystemGuesser(object): (r'/CMakeLists.txt$', 'cmake'), (r'/SConstruct$', 'scons'), (r'/setup.py$', 'python'), - (r'/NAMESPACE$', 'R') + (r'/NAMESPACE$', 'R'), + (r'/WORKSPACE$', 'bazel') ] # Peek inside the compressed file. |