[python] 3rd party modules
See original GitHub issuecurrently, for 3rd party module, we have to do pip install -t .
on the same directory as template.yaml and the main python application file. This pollutes the working directory when you have a lot of modules. Is there a better way to handle this?
maybe on the file zipping of a subdirectory?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:18
- Comments:25 (8 by maintainers)
Top Results From Across the Web
Installing Python Modules β Python 3.11.1 documentation
Starting with Python 3.4, it defaults to installing pip into all created virtual environments. virtualenv is a third party alternative (and predecessor) to...
Read more >11 Python Libraries and Modules Every Developer Should Know
Luckily Python supports a plethora of modules and libraries. Python has built-in modules as well as third-party libraries and modules for the development....
Read more >PyPI Β· The Python Package Index
Find, install and publish Python packages with the Python Package Index. Search PyPI. Search. Or browse projects. 423,406 projects. 4,036,329 releases.
Read more >10 Interesting modules in Python to play with - GeeksforGeeks
The fact that it can support the vast majority of third-party modules, it acts as a cherry on the cake. There are some...
Read more >Installing Python Third Party Libraries - Studytonight
Installing third party python packages Β· For this purpose, download the compressed (tar.gz or . Β· Extract the compressed file (to extract tar.gz...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Could you please clarify how to set up template.yml for Python module with dependencies? The example template.yml does not make sense and references a non-existent zip file.
Iβll make a proper PR as soon as I get time to clean comments up and test in other OSes, but if that helps hereβs what I came up with (tested in OSX only) to have dependencies installed + hot-reloading experience similar to NodeJS.
Essentially it takes advantage of
hard links
and clones the entire source code/folders (lib, etc.) onto a folder calleddev
. All you have to do is to change your SAM template to point to<source_code>/dev
.make build-dev SERVICE="users"
Where
users
is where my source code is as itβs ausers
service sample.