-
Notifications
You must be signed in to change notification settings - Fork 123
Conversation
Removes python_cmd and shebangs. Now it will just use whatever version of Python it finds in the path. Adds tests for deploying Lambda functions with different Python versions while running different Python versions in the path. The .envrc files are used by Direnv to set the Python version when testing.
Looks good to me! Python 3:
Python 2:
|
Thanks for checking it so quickly @lorengordon. In #30 we're adding support for custom build scripts and the @asavoy said:
And looking at the docs... https://docs.python.org/2.7/using/windows.html says it works with file associations However in #20 you said it was a problem. What are your thoughts on this? If I removed the |
@raymondbutcher I'm happy to test it if you want. However, there are a number of caveats to that approach on Windows. The problem with file associations on Windows is that it requires administrator permissions to create the file association in the first place. That happens automatically in the python installer (or manually after the fact). Once the association is there, it works for any user. But there are rather a lot of contexts and use cases in which the person installing or using python does not have administrator permissions to create the association. The launcher tool for Windows installs as Also, there are different shells on Windows that all invoke applications slightly differently. In PowerShell, if I just run
To get that to work in PowerShell, actually need to execute The command shell ( |
Thanks for the detailed info. To me it sounds like we might need a
I'm also thinking about alternatives like:
Then |
That looks pretty reasonable to me. The custom build script option would probably also address #26 well enough for my use case... |
I'm going to merge this now and figure out the custom build issue in #30. Thanks @lorengordon for your contributions and also your patience! |
Thanks @raymondbutcher! Do you think #30 will be merged soon? Really just looking for a new tag with this Windows support to target for deployments. :) |
@lorengordon I'm still thinking about the solution for #30. In the meantime, I've tagged v0.10.0 which includes this PR. |
Taking the changes made by @lorengordon in #20 with some minor tweaks to simplify usage and restore Python 2 support.