Commit Graph

3 Commits

Author SHA1 Message Date
Joe Ethier
6c92e7788a pw_build: Fix distributable setup.bat regression
Tested: Ran with and without constraints.txt on Windows
Change-Id: I1e18512329da7216e78fc496edb9242f8790353a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66441
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Pigweed-Auto-Submit: Joe Ethier <jethier@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-10-25 23:13:08 +00:00
Joe Ethier
b3ba70f932 pw_build: Make tweaks to py dist install scripts
The setup.sh script supports installation over an existing venv, but
could cause version conflicts relatively easily due to the
--force-reinstall flag. Instead, we now explicitly uninstall all the
wheels first.

The setup.bat script never supported installation over an existing venv,
and probably shouldn't have been using the --force-reinstall flag to
begin with.

Both scripts now support the inclusion of a "constraints.txt" file
side-by-side with the setup script itself. If such a file exists, it
will be provided to pip using the "-c" option when running installs.

Tested: Built and ran setup.sh from downstream project with and without
    constraints file
Change-Id: I1b02f117d14a5a973a45df3a3117f9e8b03c4acf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/65920
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Joe Ethier <jethier@google.com>
2021-10-20 19:23:09 +00:00
Joe Ethier
fbe661502f pw_build: Add tools for creating py distributables
Change-Id: Ifac2ad9f647f416b3aef5812a08187a8313d65ed
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/39664
Commit-Queue: Joe Ethier <jethier@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-05-07 17:21:54 +00:00