Is setup.py still relevant in AWS CDK v2 projects?

0

I'm migrating an AWS CDK project from v1 to v2. The file setup.py has been around since the start of the project, but I can't really find any details about this file in the Working with the AWS CDK : Python documentation (https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-python.html).

Does this file have a purpose?

asked a year ago192 views
1 Answer
0

Hi there,

Setup.py is now not being added in by default in CDKV2. I've only seen it be added into CDK apps that were generated by the CDKv1 CLI:

You can review the below github issue for more information

https://github.com/aws/aws-cdk/issues/9135

That the reason you were seeing the setup.py file initally when working CDKv1.

It was deprecated due to standards changing and to instead use pip as a standalone since setup.py introduced issues with package installations: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions