Skip to content

Commit

Permalink
Update the Python package scripts to use Python 3.10 explicitly.
Browse files Browse the repository at this point in the history
Failure:

1. From the build scripts:

```
+ ./tools/build_pip_package.sh
Python 3.8.10
```

2. But `tensorflow-probability` does not support Python 3.8, https://pypi.org/project/tensorflow-probability/

The fix is to update TFP build scripts to use Python 3.10 explicitly because it appears there are unsupported version of Python on the build machines.

PiperOrigin-RevId: 572339377
  • Loading branch information
michaelreneer authored and tensorflower-gardener committed Oct 10, 2023
1 parent 96b099f commit fd7cc76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {
trap "rm -rf ${temp_dir}" EXIT

# Create a virtual environment
python3 -m venv "${temp_dir}/venv"
python3.10 -m venv "${temp_dir}/venv"
source "${temp_dir}/venv/bin/activate"
python --version
pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion tools/publish_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {
trap "rm -rf ${temp_dir}" EXIT

# Create a virtual environment
python3 -m venv "${temp_dir}/venv"
python3.10 -m venv "${temp_dir}/venv"
source "${temp_dir}/venv/bin/activate"
python --version
pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion tools/test_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {
trap "rm -rf ${temp_dir}" EXIT

# Create a virtual environment
python3 -m venv "${temp_dir}/venv"
python3.10 -m venv "${temp_dir}/venv"
source "${temp_dir}/venv/bin/activate"
python --version
pip install --upgrade pip
Expand Down

0 comments on commit fd7cc76

Please sign in to comment.