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?

질문됨 일 년 전202회 조회
1개 답변
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠