-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use venv for Python dependencies (macOS)
Create a series of scripts to set up and manage a Python virtual environment that can be used to build (and test) Drake. Remove Python packages from macOS setup. Add dependencies to the virtual environment as needed.
- Loading branch information
1 parent
c1cabbb
commit e0776cb
Showing
30 changed files
with
1,026 additions
and
14 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 |
---|---|---|
|
@@ -28,3 +28,4 @@ | |
|
||
# User-specified configuration | ||
/user.bazelrc | ||
/setup/mac/source_distribution/requirements.txt |
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 |
---|---|---|
|
@@ -41,6 +41,7 @@ drake_py_library( | |
imports = ["."], | ||
deps = [ | ||
"//lcmtypes:lcmtypes_drake_py", | ||
"@venv", | ||
], | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -360,6 +360,7 @@ drake_py_unittest( | |
], | ||
deps = [ | ||
"@rules_python//python/runfiles", | ||
"@venv", | ||
], | ||
) | ||
|
||
|
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
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,25 @@ | ||
# PyPI packages to make available as Drake's bazel `@venv` repository. | ||
|
||
# WARNING: If you change this file, then it is up to you to regenerate | ||
# the "locked" requirements.txt file via: | ||
# | ||
# tools/workspace/venv/upgrade | ||
|
||
# Packages that we are happy to take the most recent version any time we | ||
# update requirements. The versions of these packages are "locked" in the | ||
# requirements.txt file and change any time it updates. This should be | ||
# the overwhelming majority of our requirements. | ||
|
||
ipython | ||
ipywidgets | ||
matplotlib | ||
notebook | ||
Pillow | ||
pydot | ||
PyYAML | ||
|
||
# The following are constrained or pinned version of packages. | ||
|
||
# Keep `black` and `isort` fixed until we want to explicitly update. | ||
black == 22.10.0 | ||
isort == 5.1.3 |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
# PyPI packages to make available as Drake's bazel `@venv` repository. | ||
|
||
# WARNING: If you change this file, then it is up to you to regenerate | ||
# the "locked" requirements.txt file via: | ||
# | ||
# tools/workspace/venv/upgrade | ||
|
||
# Packages that we are happy to take the most recent version any time we | ||
# update requirements. The versions of these packages are "locked" in the | ||
# requirements.txt file and change any time it updates. This should be | ||
# the overwhelming majority of our requirements. | ||
|
||
flask | ||
six | ||
u-msgpack-python | ||
websockets | ||
|
||
# The following are constrained or pinned version of packages. |
Oops, something went wrong.