Sorry for the confusion!

The vendored approach (installing into lib/ and adding an
appengine_config.py file) is correct for Python 2.7 on the standard
environment:


https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27

Python 3.7 on the standard environment and all Python versions on the
flexible environment use virtualenv and will install libraries specified in
your requirements.txt, so you don't need to create the lib folder, and
appengine_config.py is ignored:


https://cloud.google.com/appengine/docs/standard/python3/specifying-dependencies


https://cloud.google.com/appengine/docs/flexible/python/runtime#dependencies

Compute Engine is a whole different system that works in terms of VMs
rather than apps, so none of this really applies there, I'm afraid.

Hope this helps!
Phil

On Tue, Sep 25, 2018 at 11:27 AM Dewey Gaedcke <[email protected]> wrote:

> The amount of conflicting info about Python/GAE best practices is very
> frustrating.
>
> Can someone please clarify:
> Should we use the vendored approach:
> from google.appengine.ext import vendor
> vendor.add('lib')
>
> Or should we use VENV?
>
> And is there a hybrid approach using both to accommodate most Python IDEs?
>
> If we use VENV (because our IDE requires it), how do we reconcile the two?
> In other words, VENV is going to install modules inside of the "env/"
> directory where-as most tutorials instruct us to use:
> pip install --upgrade --requirement requirements.txt --target lib/
>
> Does the above advise change based on Python2.7 vs 3.7
> Does it change when moving to Flex or Compute?
>
> Google PLEASE!!! Remove all this contradictory info and clarify the
> CURRENT recommended approach.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/e81c0386-af58-4b4d-b065-b655a9dad6af%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/e81c0386-af58-4b4d-b065-b655a9dad6af%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADCZVuiUyEW2AASg_Ssu31_fWFHKindU5XTsjYJYpfeAnsyu1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to