python: Download and install pip
This commit is contained in:
parent
d8b32f66d1
commit
2a2fc4b258
@ -211,8 +211,8 @@ noremap <C-F> :<C-U><C-R>=printf("Leaderf! rg -e %s ", expand("<cword>"))<CR>
|
|||||||
" Clang Format
|
" Clang Format
|
||||||
" ==============================================================================
|
" ==============================================================================
|
||||||
if s:running_windows
|
if s:running_windows
|
||||||
map <C-I> :pyf $home\.vim\clang-format.py<CR>
|
map <C-I> :py3f $home\.vim\clang-format.py<CR>
|
||||||
imap <C-I> <ESC>:pyf $home\.vim\clang-format.py<CR>i
|
imap <C-I> <ESC>:py3f $home\.vim\clang-format.py<CR>i
|
||||||
else
|
else
|
||||||
map <C-I> :py3f ~/.vim/clang-format.py<CR>
|
map <C-I> :py3f ~/.vim/clang-format.py<CR>
|
||||||
imap <C-I> <ESC>:py3f ~/.vim/clang-format.py<CR>i
|
imap <C-I> <ESC>:py3f ~/.vim/clang-format.py<CR>i
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
:: %ccall% "/customOption" "command/program"
|
:: %ccall% "/customOption" "command/program"
|
||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
set PATH=%cmder_root%\bin\python;%PATH%
|
set PATH=%cmder_root%\bin\python;%cmder_root%\bin\python\Scripts;%PATH%
|
||||||
set HOME=%cmder_root%\..\Home
|
set HOME=%cmder_root%\..\Home
|
||||||
set HOMEPATH=%cmder_root%\..\Home
|
set HOMEPATH=%cmder_root%\..\Home
|
||||||
set USERPROFILE=%cmder_root%\..\Home
|
set USERPROFILE=%cmder_root%\..\Home
|
||||||
alias gvim=%cmder_root%\..\GVim\gVimPortable.exe $*
|
alias gvim=%cmder_root%\..\GVim\gVimPortable.exe $*
|
||||||
|
5
Installer/win32_python36._pth
Normal file
5
Installer/win32_python36._pth
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
python36.zip
|
||||||
|
.
|
||||||
|
|
||||||
|
# Uncomment to run site.main() automatically
|
||||||
|
import site
|
@ -84,12 +84,26 @@ set python_zip=python-%python_version%-embed-win32.zip
|
|||||||
set python_url=https://www.python.org/ftp/python/%python_version%/%python_zip%
|
set python_url=https://www.python.org/ftp/python/%python_version%/%python_zip%
|
||||||
set python_zip_dest=Installer\%python_zip%
|
set python_zip_dest=Installer\%python_zip%
|
||||||
set python_dest=%cmder_root%\bin\python
|
set python_dest=%cmder_root%\bin\python
|
||||||
|
|
||||||
echo - Downloading from %python_url% to %python_zip_dest%
|
echo - Downloading from %python_url% to %python_zip_dest%
|
||||||
if not exist "%python_zip_dest%" powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest %python_url% -OutFile %python_zip_dest%"
|
if not exist "%python_zip_dest%" powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest %python_url% -OutFile %python_zip_dest%"
|
||||||
|
|
||||||
echo - Unzip %python_zip_dest% to %python_dest%
|
echo - Unzip %python_zip_dest% to %python_dest%
|
||||||
if not exist "%python_dest%" Installer\win32_7za.exe x -y -o%python_dest% %python_zip_dest% > NUL
|
if not exist "%python_dest%" Installer\win32_7za.exe x -y -o%python_dest% %python_zip_dest% > NUL
|
||||||
|
|
||||||
|
REM Python Pip Setup
|
||||||
|
set python_pth_file=Installer\win32_python36._pth
|
||||||
|
set python_pth_dest_file=%python_dest%\python36._pth
|
||||||
|
echo - Copy %python_pth_file% to %python_pth_dest_file%
|
||||||
|
copy /Y %python_pth_file% %python_pth_dest_file% > NUL
|
||||||
|
|
||||||
|
REM Python Pip
|
||||||
|
set python_pip_url=https://bootstrap.pypa.io/get-pip.py
|
||||||
|
set python_pip_file=%python_dest%\get-pip.py
|
||||||
|
echo - Downloading from %python_pip_url% to %python_pip_file%
|
||||||
|
if not exist "%python_pip_file%" powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest %python_pip_url% -OutFile %python_pip_file%"
|
||||||
|
if not exist "%python_dest%\Scripts\pip.exe" %python_dest%\python %python_pip_file%
|
||||||
|
|
||||||
REM
|
REM
|
||||||
REM ctags, scanmapset (bind capslock to escape via registry), uncap (bind capslock to escape whilst program running shim)
|
REM ctags, scanmapset (bind capslock to escape via registry), uncap (bind capslock to escape whilst program running shim)
|
||||||
REM
|
REM
|
||||||
|
Loading…
Reference in New Issue
Block a user