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?

preguntada hace un año202 visualizaciones
1 Respuesta
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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas