Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
be046d73
Unverified
Commit
be046d73
authored
4 years ago
by
Adam J. Stewart
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Bazel: add spack external find support (#18008)
parent
84a16e62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/bazel/package.py
+10
-0
10 additions, 0 deletions
var/spack/repos/builtin/packages/bazel/package.py
with
10 additions
and
0 deletions
var/spack/repos/builtin/packages/bazel/package.py
+
10
−
0
View file @
be046d73
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import
re
class
Bazel
(
Package
):
class
Bazel
(
Package
):
"""
Bazel is an open-source build and test tool similar to Make, Maven, and
"""
Bazel is an open-source build and test tool similar to Make, Maven, and
...
@@ -135,6 +137,14 @@ class Bazel(Package):
...
@@ -135,6 +137,14 @@ class Bazel(Package):
phases
=
[
'
bootstrap
'
,
'
install
'
]
phases
=
[
'
bootstrap
'
,
'
install
'
]
executables
=
[
'
^bazel$
'
]
@classmethod
def
determine_version
(
cls
,
exe
):
output
=
Executable
(
exe
)(
'
version
'
,
output
=
str
,
error
=
str
)
match
=
re
.
search
(
r
'
Build label: ([\d.]+)
'
,
output
)
return
match
.
group
(
1
)
if
match
else
None
def
url_for_version
(
self
,
version
):
def
url_for_version
(
self
,
version
):
if
version
>=
Version
(
'
0.4.1
'
):
if
version
>=
Version
(
'
0.4.1
'
):
url
=
'
https://github.com/bazelbuild/bazel/releases/download/{0}/bazel-{0}-dist.zip
'
url
=
'
https://github.com/bazelbuild/bazel/releases/download/{0}/bazel-{0}-dist.zip
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment