forked from sammy-tri/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RobotLocomotion#14395 from jamiesnape/brew-numpy-1…
….19.4-scipy-1.5.4-vtk-8.2.0 Use formulae dependent on Python 3.8 on macOS and rebuild VTK for all platforms
- Loading branch information
Showing
13 changed files
with
144 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,19 +15,22 @@ brew 'gflags' | |
brew 'glew' | ||
brew 'glib' | ||
brew 'graphviz' | ||
# brew extract last working version. | ||
brew 'robotlocomotion/director/[email protected]' | ||
brew 'libyaml' | ||
brew 'lz4' | ||
brew 'nlopt' | ||
brew 'numpy' | ||
# brew extract last working version that depends on [email protected]. | ||
brew 'robotlocomotion/director/[email protected]' | ||
brew 'openblas' | ||
brew 'pkg-config' | ||
brew '[email protected]' | ||
brew 'scipy' | ||
# brew extract last working version that depends on [email protected]. | ||
brew 'robotlocomotion/director/[email protected]' | ||
brew 'suite-sparse' | ||
brew 'tinyxml' | ||
brew 'tinyxml2' | ||
brew 'robotlocomotion/director/[email protected]' | ||
brew 'robotlocomotion/director/[email protected].0' | ||
brew 'xz' | ||
brew 'yaml-cpp' | ||
brew 'zeromq' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,21 @@ if ! command -v /usr/local/bin/brew &>/dev/null; then | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
fi | ||
|
||
/usr/local/bin/brew update | ||
# TODO(jamiesnape): Remove lines uninstalling [email protected], [email protected], and | ||
# [email protected] on or after 2021-02-01. | ||
/usr/local/bin/brew uninstall --force $(cat <<EOF | ||
robotlocomotion/director/[email protected] | ||
robotlocomotion/director/[email protected] | ||
robotlocomotion/director/[email protected] | ||
EOF | ||
) | ||
|
||
# Ensure numpy is updated to the most recent version to avoid conflicts with | ||
# robotlocomotion/drake/[email protected] | ||
# TODO(jamiesnape): Remove line upgrading numpy or after 2021-02-01. | ||
/usr/local/bin/brew list numpy &>/dev/null \ | ||
&& (brew outdated numpy >/dev/null || /usr/local/bin/brew upgrade numpy) | ||
|
||
/usr/local/bin/brew bundle --file="${BASH_SOURCE%/*}/Brewfile" --no-lock | ||
|
||
if ! command -v /usr/local/opt/[email protected]/bin/pip3 &>/dev/null; then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- python -*- | ||
|
||
# This file exists to make our directory into a Bazel package, so that our | ||
# neighboring *.bzl file can be loaded elsewhere. | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
15 changes: 15 additions & 0 deletions
15
tools/workspace/double_conversion/package-macos.BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- python -*- | ||
|
||
licenses(["notice"]) # BSD-3-Clause | ||
|
||
cc_library( | ||
name = "double_conversion", | ||
hdrs = glob(["include/double-conversion/*.h"]), | ||
includes = ["include"], | ||
linkopts = [ | ||
"-L/usr/local/opt/double-conversion/lib", | ||
"-Wl,-rpath,/usr/local/opt/double-conversion/lib", | ||
"-ldouble-conversion", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
14 changes: 14 additions & 0 deletions
14
tools/workspace/double_conversion/package-ubuntu.BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- python -*- | ||
|
||
licenses(["notice"]) # BSD-3-Clause | ||
|
||
cc_library( | ||
name = "double_conversion", | ||
hdrs = glob(["include/double-conversion/*.h"]), | ||
includes = ["include"], | ||
linkopts = [ | ||
"-L/usr/lib/x86_64-linux-gnu", | ||
"-ldouble-conversion", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- python -*- | ||
|
||
load("@drake//tools/workspace:os.bzl", "determine_os") | ||
|
||
def _impl(repository_ctx): | ||
os_result = determine_os(repository_ctx) | ||
|
||
if os_result.error != None: | ||
fail(os_result.error) | ||
|
||
if os_result.is_macos: | ||
repository_ctx.symlink( | ||
"/usr/local/opt/double-conversion/include", | ||
"include", | ||
) | ||
repository_ctx.symlink( | ||
Label( | ||
"@drake//tools/workspace/double_conversion:package-macos.BUILD.bazel", # noqa | ||
), | ||
"BUILD.bazel", | ||
) | ||
elif os_result.is_ubuntu: | ||
repository_ctx.symlink( | ||
"/usr/include/double-conversion", | ||
"include/double-conversion", | ||
) | ||
repository_ctx.symlink( | ||
Label( | ||
"@drake//tools/workspace/double_conversion:package-ubuntu.BUILD.bazel", # noqa | ||
), | ||
"BUILD.bazel", | ||
) | ||
else: | ||
fail("Operating system is NOT supported", attr = os_result) | ||
|
||
double_conversion_repository = repository_rule( | ||
local = True, | ||
configure = True, | ||
implementation = _impl, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- python -*- | ||
|
||
# This file exists to make our directory into a Bazel package, so that our | ||
# neighboring *.bzl file can be loaded elsewhere. | ||
|
||
load("//tools/lint:lint.bzl", "add_lint_tests") | ||
|
||
add_lint_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- mode: python -*- | ||
|
||
load( | ||
"@drake//tools/workspace:pkg_config.bzl", | ||
"pkg_config_repository", | ||
) | ||
|
||
def liblzma_repository( | ||
name, | ||
licenses = ["restricted"], # LGPL-2.1-only | ||
modname = "liblzma", | ||
pkg_config_paths = ["/usr/local/opt/xz/lib/pkgconfig"], | ||
**kwargs): | ||
pkg_config_repository( | ||
name = name, | ||
licenses = licenses, | ||
modname = modname, | ||
pkg_config_paths = pkg_config_paths, | ||
**kwargs | ||
) |
Oops, something went wrong.