1) You can only include in modules/ pure python modules and, even in that 
case, not all of them work f they expect to be in "site-packages".
2) the difference is that by putting modules in the app/modules folder, 
they will be distributed with your app and user does not need to call pip. 
Also pip installed modules are shared among all apps, some times that can 
reate conflicts. Anyway, if a module is pip install-able,  would use pip. I 
used the modules folder only for custom modules.
3) I never used pyinstaller, I would just distribute your app with a list 
of dependencies or use docker.

On Saturday, 9 June 2018 03:15:50 UTC+2, 黄祥 wrote:
>
> *ref:*
> https://groups.google.com/forum/#!newtopic/web2py/web2py/_lNJg6XLl4c
>
> *question:*
> 1. which folder that must be included in app modules/ (e.g. 
> ~/web2py/applications/init/modules) folder?
> e.g.
> $ ls -l ~/miniconda3/envs/python2
> drwxr-xr-x  42 sugizo  staff  1428 May 21 07:28 bin
> drwxr-xr-x  19 sugizo  staff   646 May 20 18:57 conda-meta
> drwxr-xr-x  91 sugizo  staff  3094 May 20 18:57 include
> drwxr-xr-x  92 sugizo  staff  3128 May 20 18:57 lib
> drwxr-xr-x   8 sugizo  staff   272 May 20 18:57 share
> drwxr-xr-x   7 sugizo  staff   238 May 20 18:57 ssl
> 2. what is the different above method with pip install python_packages or 
> using pip install -r requirements.txt ?
> 3. or even with pyinstaller (not sure can work to bundle python libraries 
> for *nix environment), comment ?
>
> *ref pyinstaller:*
> https://pyinstaller.readthedocs.io/en/v3.3.1/operating-mode.html
>
> thanks and best regards,
> stifan
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to