Hi,

2018/1/22 Mon 3:27:56 UTC+9 Ni Va wrote:
> Le dimanche 21 janvier 2018 15:47:15 UTC+1, Ken Takata a écrit :
> > Hi,
> > 
> > 2018/1/21 Sun 23:40:20 UTC+9 Ni Va wrote:
> > > Le vendredi 19 janvier 2018 12:06:22 UTC+1, Ken Takata a écrit :
> > > > Hi,
> > > > 
> > > > 2018/1/19 Fri 19:49:18 UTC+9 Ni Va wrote:
> > > > > 1. I delete registry entry
> > > > > 
> > > > > 
> > > > > 2. in _vimrc 
> > > > > 
> > > > > 
> > > > > " Python
> > > > > 
> > > > > let $pythonhome= 'c:/thirdPartTools/Python36'
> > > > > let currpath.=';'.'c:/thirdPartTools/Python27'
> > > > > let currpath.=';'.'c:/thirdPartTools/Python36'
> > > > > let currpath.=';'.'c:/thirdPartTools/Python36/Lib/site-packages'
> > > > > let uniqPath= join(uniq(split(currpath,';')),';')
> > > > > let $path=currpath
> > > > > 
> > > > > set pythondll=python27.dll
> > > > > set pythonthreedll=python36.dll
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 3. py3 print('hell') returns hell => OK
> > > > > 
> > > > > 
> > > > > 4. echo neovim_rpc#serveraddr() returns local ip server => OK
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > Distri is now standalone.
> > > > > 
> > > > > 
> > > > > Thank you !
> > > > 
> > > > I suspect that `:py print('hello')` doesn't work now.
> > > > There is a PR to fix it, but it is not included:
> > > > https://github.com/vim/vim/pull/1266
> > > > 
> > > > Regards,
> > > > Ken Takata
> > > 
> > > As you said, py print('hello') not loaded when py3 loaded with the 
> > > following minimal set in _vimrc:
> > > 
> > > 
> > > I Focus on 
> > > 1. rpc server started OK from 
> > > https://github.com/roxma/vim-hug-neovim-rpc.git 
> > > 2. deoplete from https://github.com/Shougo/deoplete.nvim.git seems OK 
> > > 3. clang_complete from https://github.com/Rip-Rip/clang_complete.git is KO
> > > 
> > > 
> > > 
> > > 
> > > " Python minimal set with windows cleaned up registry
> > > let pythonver=36
> > > 
> > > let $pythonhome= thirdpartbase.'/Python'.pythonver
> > > let $pythonpath= $pythonhome
> > > for path in split(globpath($pythonhome,'*'),'\n')
> > >   let $pythonpath.=';'.path
> > > endfor
> > > for path in split(globpath($pythonhome.'/Lib/site-packages','*'),'\n')
> > >   let $pythonpath.=';'.path
> > > endfor
> > > 
> > > let $path.=';'.$pythonhome
> > > let $path.=';'.$pythonhome.'/scripts'
> > > let $path.=';'.$pythonpath
> > > 
> > > " set pythondll=python27.dll
> > > " set pythonthreedll=python36.dll
> > > 
> > > call join(uniq(split($path,';')),';')
> > 
> > The problem is that Python 2 and 3 share the same evironment variable.
> > To solve this, as I already said, PR#1266 is required.
> > 
> > Regards,
> > Ken Takata
> 
> And is it working ?

Of course not, if you don't apply the PR and fix conflicts by yourself.
The PR hasn't been merged yet.
Also note that the PR adds two options 'pythonhome' and 'pythonthreehome',
not the support for the environment variable $PYTHONTHREEHOME.


> Because when I mix pythonhome and pythonthreehome with associated paths to 
> pythonpath.

I don't know about the $PYTHONPATH environment variable, whether it can be
safely shared between Python 2 and 3, or sys.path should be set separately
in if_python.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui