aws / aws/aws-cdk

python: pre-install dependencies during virtual environment setup

Open
#23,774 3 comments 0 reactions 0 assignees View on GitHub
effort/large feature-request p3 package/tools
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Hi,

Wouldn't it be nice to have the dependencies pre-installed when a cdk app is created at first under the Python Language? The offered virtual-env would then have the app already staged for testing.

### Use Case

I think that this would just enhance the overall workflow of the app minimizing a bit of effort.

### Proposed Solution

A change within the `init.ts` - `postInstallPython` function, one can just add in the call to Python's ENV with regards to the same.

### Other Information

_No response_

### Acknowledgements

- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.60.0

### Environment details (OS name and version, etc.)

Mac OS

Contributor guide

Open the contributing guide

Research direction

Start in init.ts at the postInstallPython function and trace how the Python virtual environment is created during CDK app initialization. Determine how the app's dependencies are installed into that environment, then verify that a newly created Python app is already staged for testing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.