question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Also distribute CDK Toolkit via pip

See original GitHub issue

Only relevant once the Python bindings are out, but a comment has been made that it will be jarring to Python developers to have to npm install the Toolkit, and they would prefer to pip install it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jeshancommented, Sep 6, 2019

I think considering by language-specific is suboptimal as it won’t scale. If npm isn’t desirable by Python programmers, then the same argument could be made by the community behind each of the CDK-supported languages, e.g a .NET programmer could say that neither pip nor npm is desirable.

Maybe a better solution is to provide a native CDK binary per OS with pkg or nexe

1reaction
bgdnlpcommented, Sep 2, 2019

Regarding installing a venv, you don’t have to initialize a language/environment using --init. It’s just there as a helper. You can start blank, nothing the CDK sets up there is actually required.

Personally, I only used --init the first time I tried the CDK, after that I found that it just gets in the way.

Maybe the documentation and examples should make that clearer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with the AWS CDK in Python
Working with the AWS CDK in Python uses familiar tools, including the ... The modules comprising the AWS Construct Library are distributed via...
Read more >
cdk-toolkit - PyPI
Install AWS CDK · Create CDK Project Directory · Create CDK Project Environment · Add Stacks to CDK Project · Update CDK Project...
Read more >
cdk init | AWS CDK Workshop
It demonstrates a CDK app with an instance of a stack (`CdkWorkshopStack`) which contains an Amazon SQS queue that is subscribed to an...
Read more >
Deploying with the AWS CDK — AWS Chalice
$ npm install -g aws-cdk · $ cdk --version 1.83.0 (build 827c5f4) · $ python3 -m venv demo $ . demo/bin/activate $ python3...
Read more >
AWS CDK Toolkit - npm
CDK Toolkit, the command line tool for CDK apps. Latest version: 2.56.0, last published: 11 hours ago. Start using aws-cdk in your project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found