Ability to have separate local / live builds #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
I'm developing a service that uses Pillow, and the dynamic libraries installed only worked when invoked on either my development laptop (OSX) or on AWS, never both, depending on if I compiled using the docker container or not. Having the ability to locally invoke while I'm developing is crucial for speed, so I decided to implement this.
Changes
sls requirements install local
will install dependencies to.local_requirements
using the host machine, even ifdockerizePip
is enabled.requirements.py
now adds either or both of.requirements
and.local_requirements
depending on if they exist or not. If.local_requirements
exists it will take precedence. Right now I have.local_requirements
in mypackage: exclude:
, but I'm not sure if there's any way to force exclude it somehow within the plugin logic.Other stuff
These are only semi-related to this feature, but I threw them in here anyway as I see them as needed improvements- I can remove if necessary.
--isolated
flag to pip to ensure that no global pip settings interfere with installation-U
and--upgrade-strategy=only-if-needed
as there is no API for updating packagesI can update the docs, but I wanted feedback on this before I take the time to do that.
Thanks!