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?

gefragt vor einem Jahr202 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen