New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] Initialize Python application without setup.py #9135
Comments
I ran into this same problem and Intellij treats the project "funny" (read: not in a good way). I ended up removing |
I always thought this was a bit unusual myself. |
@alexpulver thanks for logging this feature request, I agree that we should be aligning ourselves with Python guidance on packaging applications. |
Hey @shivlaks, is there any update on this? |
Verified with CDK version 2.23.0: no setup.py is generated. I think this issue can be closed.
|
Std out from
|
Ah yes, missed that :-) I guess that should read:
I am not too experienced in python though. In npm there is an option to save to package.json automatically. The template can be changed here: aws-cdk/packages/aws-cdk/lib/init-templates/v2/app/python/README.template.md Lines 46 to 48 in 87786f4
Happy to make a PR if the text above is ok :-) |
I don't think there is an equivalent to |
cdk init --language python
generatessetup.py
file, andrequirements.txt
file with-e .
, that installs the project in editable mode (i.e. setuptools “develop mode”) from local path. This approach is used for distributing Python code to developers - a reusable construct in CDK case. CDK application is not a reusable construct, hence shouldn't havesetup.py
, and only list its direct dependencies inrequirements.txt
.Use Case
Make
cdk init --language python
scaffolding more aligned with Python guidance on packaging applications as compared to packaging libraries and toolsProposed Solution
Remove
setup.py
and-e .
fromrequirements.txt
when runningcdk init --language python
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: