WinPython 2.7は更新が停止?
WinPythonの2.7は2.7.13.1で更新が停止してしまった。
2018年中には,いよいよ,おわりか?
現在CPython自体はバージョンが2.7.15へ進んでいる。
まだまだ,node.jsの一部モジュールがPython 2.7に依存している状況なのだが,なんとかならないのか。
今のところWinPythonの更新が途切れてから1年程度なのでまだ差は大きくないのでnodevars.batは以下のようにしてPATHにWinPythonのフォルダを追加して使っている。
@echo off
rem Ensure this Node.js and npm are first in the PATH
set "PATH=%APPDATA%\npm;%~dp0;%PATH%"
setlocal enabledelayedexpansion
pushd "%~dp0"
rem Figure out the Node.js version.
set print_version=.\node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
rem Print message.
if exist npm.cmd (
echo Your environment has been set up for using Node.js !version! and npm.
) else (
echo Your environment has been set up for using Node.js !version!.
)
popd
endlocal
set "PATH=C:\WinPython-64bit-2.7.13.1Zero\python-2.7.13.amd64;C:\cmake-3.12.0-win32-x86\cmake-3.12.0-win32-x86\bin;%PATH%"
"C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Auxiliary\Build\vcvars32.bat"
rem If we're in the Node.js directory, change to the user's home dir.
if "%CD%\"=="%~dp0" cd /d "%HOMEDRIVE%%HOMEPATH%"
今更Python 2.7をインストールするのは気が引ける。
伝統的にPython 2.7はドライブのルートにインストールするようにインストーラが作られている。
タグ:Python

