Skip to content

Commit d78e830

Browse files
authored
fix: Specify python version for dependency installs (#85)
For lambda and EC2, specify the python version so that the correct binaries will be installed. Fixes #64 Also removed the mise.toml to be more consistent with other examples. Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
1 parent b8418f9 commit d78e830

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

docs/examples/cdk/deploy_to_ec2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ source .venv/bin/activate # On Windows: .venv\Scripts\activate
3838
pip install -r ./requirements.txt
3939

4040
# Install Python dependencies for the app distribution
41-
pip install -r requirements.txt --platform manylinux2014_aarch64 --target ./packaging/_dependencies --only-binary=:all:
41+
pip install -r requirements.txt --python-version 3.12 --platform manylinux2014_aarch64 --target ./packaging/_dependencies --only-binary=:all:
4242
```
4343

4444
2. Bootstrap your AWS environment (if not already done):

docs/examples/cdk/deploy_to_lambda/.mise.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/examples/cdk/deploy_to_lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ source .venv/bin/activate # On Windows: .venv\Scripts\activate
3535
# Install Python dependencies for the local development
3636
pip install -r requirements.txt
3737
# Install Python dependencies for lambda with correct architecture
38-
pip install -r requirements.txt --platform manylinux2014_aarch64 --target ./packaging/_dependencies --only-binary=:all:
38+
pip install -r requirements.txt --python-version 3.12 --platform manylinux2014_aarch64 --target ./packaging/_dependencies --only-binary=:all:
3939
```
4040

4141
2. Package the lambda:

docs/user-guide/deploy/deploy_to_amazon_ec2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ To deploy your agent to EC2:
222222
npx cdk bootstrap
223223

224224
# Package Python dependencies for the target architecture
225-
pip install -r requirements.txt --platform manylinux2014_aarch64 --target ./packaging/_dependencies --only-binary=:all:
225+
pip install -r requirements.txt --target ./packaging/_dependencies --python-version 3.12 --platform manylinux2014_aarch64 --only-binary=:all:
226226

227227
# Deploy the stack
228228
npx cdk deploy

0 commit comments

Comments
 (0)