WinPython 3.4.3.5 软件包清单与版本变更深度解读:一份 changelog 背后的发行版全貌

原创2026-10-16 08:49:231,904 阅读
文章标签:包管理器开发工具CLI构建工具

WinPython 3.4.3.5 软件包清单与版本变更深度解读:一份 changelog 背后的发行版全貌

WinPython 是一个面向 Windows 平台的 Python 便携式发行版(portable distribution),其 changelogs/ 目录中的每个版本文件(如 WinPython-3.4.3.5.md)本质上是一张"成分表":逐项列出该发行版随附的独立工具与全部 Python 包及其版本号。本文以 WinPython-3.4.3.5.md 为主干,结合其姊妹文档 WinPython-3.4.3.5_History.md 与仓库中的 wppm 包管理/构建工具链源码,完整还原该版本的软件栈,并解释这类 changelog 是如何被自动生成、解析与对比的——读完本文,你将能读懂任意一份 WinPython 版本清单,并用仓库自带的 wppm -diff 工具自行对比任意两个版本的包差异。

一、文档定位:changelog 就是发行版的"成分表"

changelogs/WinPython-3.4.3.5.md 并不是一篇流水账式的更新日志,而是一份完整的包索引(package index):它固定由两个 Markdown 小节构成——### Tools(随发行版附带的独立工具)与 ### Python packages(全部随附 Python 包),每个条目给出 Name | Version | Description 三列信息。

这一格式并非人工手写,而是由仓库中的 wppm 工具链自动生成的。在 wppm/wppm.py 中,Distribution.generate_package_index_markdown()(wppm/wppm.py#L116-L132)负责渲染出与本文档完全一致的排版:

  • 首行标题 ## WinPython 3.4.3.5;
  • 说明行 The following packages are included in WinPython v3.4.3.5.;
  • 依次输出 Tools、Python packages(新版还会输出 WheelHouse packages)三个小节,每节都是标准的 Name | Version | Description 三列表格。

对应的数据采集逻辑在 Distribution.get_package_index_data()(wppm/wppm.py#L83-L114):它通过 pip list 读取已安装包、通过 utils.get_installed_tools() 探测随附工具(Python 本体、Node.js、Pandoc、VSCode 等,见 wppm/utils.py#L76-L92),并扫描本地 WheelHouse 目录。换言之,每份 changelog 都是从某个真实构建产物中提取出来的快照,表格里的每一个版本号都有对应实体。

顺带一提,从 changelogs/ 目录的文件名可以观察到版本命名的演变:3.4.x 时代文件名为 WinPython-3.4.3.5.md(未标注位数,同一版本还有 PyQt5 风味变体 WinPythonQt5-3.4.3.5.md),而 3.5 之后才出现 WinPython-64bit-3.7.0.0.md 这类显式标注架构的现代命名。

二、Tools 部分:随发行版附带的独立编辑器

版本 3.4.3.5 在 Tools 部分只收录了一个独立工具:

Name Version Description
SciTE 3.3.7 SCIntilla based Text Editor - Multilanguage, powerful and light-weight text editor

SciTE 是基于 Scintilla 编辑组件的轻量级多语言文本编辑器。在 3.4.3.5 之前的构建中,Tools 区还包含过 MinGW32(Mingwpy 静态工具链版的 C/C++/Fortran 编译器)与 gettext(GNU 翻译工具),这两个工具在 3.4.3.5 中被移除(详见后文变更明细)。当前版本的 get_installed_tools() 会动态探测工具目录(如 n/node.exe、t/pandoc.exe、t/VSCode/Code.exe),说明"随附工具"本身是构建时按需装配的。

三、Python 包全景清单(完整继承原文档)

下表完整转录 changelogs/WinPython-3.4.3.5.md 中 ### Python packages 的全部 140 个条目(省略原表中的外部项目主页链接,保留名称、版本与描述,排序与原文一致):

Name Version Description
Python 3.4.3 Python programming language with standard library
adodbapi 2.6.0.7 A pure Python package implementing PEP 249 DB-API using Microsoft ADO.
alabaster 0.7.6 A configurable sidebar-enabled Sphinx theme
astroid 1.3.6 Rebuild a new abstract syntax tree from Python's ast (required for pylint)
Babel 1.3 Internationalization utilities
baresql 0.7.1 playing SQL directly on Python datas
bcolz 0.10.0 columnar and compressed data containers.
beautifulsoup4 4.4.0 Screen-scraping library
blaze 0.8.2 Blaze
bokeh 0.9.2 Statistical and novel interactive HTML plots for Python
brewer2mpl 1.4.1 Connect colorbrewer2.org color maps to Python and matplotlib
certifi 2015.4.28 Python package for providing Mozilla's CA Bundle.
cffi 1.1.2 Foreign Function Interface for Python calling C code.
click 4.1 A simple wrapper around optparse for powerful command line utilities.
colorama 0.3.3 Cross-platform colored terminal text
cvxopt 1.1.7 Convex optimization library
cx_Freeze 4.3.4 Deployment tool which converts Python scripts into stand-alone Windows executables (i.e. target machine does not require Python or any other library to be installed)
cyordereddict 0.2.2 Cython implementation of Python's collections.OrderedDict
Cython 0.22.1 Cython is a language that makes writing C extensions for the Python language as easy as Python
cytoolz 0.7.3 Cython implementation of Toolz: High performance functional utilities
dask 0.6.1 Minimal task scheduling abstraction
datashape 0.4.6 A data description language
db.py 0.4.4 a db package that doesn't suck
decorator 3.4.2 Better living through Python with decorators
dill 0.2.3 serialize all of python (almost)
docopt 0.6.2 Pythonic argument parser, that will make you smile
docutils 0.12 Text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX (includes reStructuredText)
Flask 0.10.1 A microframework based on Werkzeug, Jinja2 and good intentions
fonttools 2.5 Tools to manipulate font files
formlayout 1.0.15 Module for creating form dialogs/widgets to edit various type of parameters without having to write any GUI code
greenlet 0.4.7 Lightweight in-process concurrent programming
guidata 1.6.2 Automatically generated graphical user interfaces for easy data set edition and display
guiqwt 2.3.2 Efficient curve/image plotting and other GUI tools for scientific data processing software development
h5py 2.5.0 General-purpose Python interface to HDF5 files (unlike PyTables, h5py provides direct access to the full HDF5 C library)
holoviews 1.3.2 Composable, declarative data structures for building complex visualizations easily.
husl 4.0.2 Human-friendly HSL (Hue-Saturation-Lightness)
ipython 3.2.1 Enhanced Python shell
ipython_sql 0.3.6 RDBMS access via IPython
itsdangerous 0.24 Various helpers to pass trusted data to untrusted environments and back.
jedi 0.9.0 An autocompletion tool for Python that can be used for text editors
Jinja2 2.7.3 Sandboxed template engine (provides a Django-like non-XML syntax and compiles templates into executable python code)
joblib 0.8.4 Lightweight pipelining: using Python functions as pipeline jobs.
jsonschema 2.5.1 An implementation of JSON Schema validation for Python
julia 0.1.1.8 Python interface to the Julia language
Keras 0.1.2 Theano-based Deep Learning library
llvmlite 0.6.0 lightweight wrapper around basic LLVM functionality
lmfit 0.8.3 Least-Squares Minimization with Bounds and Constraints
locket.py 0.2.0 File-based locks for Python for Linux and Windows
logilab_common 1.0.2 Collection of low-level Python packages and modules used by Logilab projects (required for pylint)
lxml 3.4.4 Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Markdown 2.6.2 Python implementation of Markdown.
MarkupSafe 0.23 Implements a XML/HTML/XHTML Markup safe string for Python
matplotlib 1.4.3 2D plotting library (embeddable in GUIs created with PyQt)
mingwpy 0.1.0b3 the python friendly windows compiler toolchain
mistune 0.7 The fastest markdown parser in pure Python, inspired by marked.
mpld3 0.2 D3 Viewer for Matplotlib
multipledispatch 0.4.8 A relatively sane approach to multiple dispatch in Python
mysql_connector_python 2.0.4 MySQL driver written in Python
netCDF4 1.1.9 python/numpy interface to netCDF library (versions 3 and 4)
networkx 1.9.1 Python package for creating and manipulating graphs and networks
nltk 3.0.4 The Natural Language Toolkit (NLTK) is a Python package for natural language processing.
nose 1.3.7 nose is a discovery-based unittest extension (e.g. NumPy test module is using nose)
numba 0.20.0 compiling Python code using LLVM
numexpr 2.4.3 Fast evaluation of array expressions elementwise by using a vector-based virtual machine
numpy 1.9.2+mkl NumPy: multidimensional array processing for numbers, strings, records and objects (SciPy's core module)
numpydoc 0.5 Sphinx extension to support docstrings in Numpy format
oct2py 3.3.0 Python to GNU Octave bridge --> run m-files from python.
odo 0.3.3 Data migration in Python
pandas 0.16.2 Powerful data structures for data analysis, time series and statistics
param 1.3.2 Declarative Python programming using Parameters.
partd 0.3.2 Appendable key-value storage
patsy 0.4.0 Describing statistical models using symbolic formulas
pep8 1.6.2 Python style guide checker
pg8000 1.10.2 PostgreSQL interface library
Pillow 2.9.0 Python Imaging Library (fork)
pip 7.1.0 A tool for installing and managing Python packages
pkginfo 1.2.1 Query metadatdata from sdists / bdists / installed packages.
Polygon3 3.0.7 Polygon3 is a Python-3 package that handles polygonal shapes in 2D
prettytable 0.7.2 A simple Python library for easily displaying tabular data in a visually appealing ASCII table format.
psutil 3.1.1 Provides an interface for retrieving information on all running processes and system utilization (CPU, disk, memory, network) in a portable way
PuLP 1.5.9 PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems
PyAudio 0.2.8 Bindings for PortAudio v19, the cross-platform audio input/output stream library.
pybars3 0.9.1 Handlebars.js templating for Python 3 and 2
pycparser 2.14 C parser in Python
pyflakes 0.9.2 passive checker of Python programs
Pygments 2.0.2 Generic syntax highlighter for general use in all kinds of software
pyhdf 0.8.3 Python interface to HDF4 files (Hierarchical Data Format version 4)
pylint 1.4.3 Logilab code analysis module: analyzes Python source code looking for bugs and signs of poor quality
PyMeta3 0.5.1 Pattern-matching language based on Meta for Python 3 and 2
pymongo 3.0.3 Python driver for MongoDB
pyodbc 3.0.10 DB API Module for ODBC
PyOpenGL 3.1.0 Cross platform Python binding to OpenGL and related APIs
pyparsing 2.0.3 A Python Parsing Module
PyQt4 4.11.4 Python bindings for the Qt cross platform GUI toolkit
PyQtdesignerplugins 1.1 PyQtdesignerplugins installs Python Qt designer plugins (Matplotlib, guiqwt, etc.) for PyQt4
pyqtgraph 0.9.10 Scientific Graphics and GUI Library for Python
PyQwt 5.2.1 2D plotting library (set of Python bindings for the Qwt library featuring fast plotting)
pyserial 2.7 Library encapsulating the access for the serial port
pystache 0.5.4 Mustache for Python
python_dateutil 2.4.2 Powerful extensions to the standard datetime module
pytz 2015.4 World Timezone Definitions for Python
pywin32 219 Python library for Windows
PyYAML 3.11 YAML parser and emitter for Python
pyzmq 14.7.0 Lightweight and super-fast messaging based on ZeroMQ library (required for IPython Qt console)
redis 2.10.3 Python client for Redis key-value store
reportlab 3.2.0 The PDF generation library
requests 2.7.0 Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.
rope_py3k 0.9.4.post1 a python refactoring library...
rpy2 2.6.1 Python interface to the R language (embedded R)
scikit_image 0.11.3 Image processing toolbox for SciPy
scikit_learn 0.16.1 A set of Python modules for machine learning and data mining
scilab2py 0.6 Python to Scilab bridge
scipy 0.16.0 SciPy: Scientific Library for Python (advanced math, signal processing, optimization, statistics, ...)
seaborn 0.6.0 statistical data visualization
setuptools 17.1.1 Download, build, install, upgrade, and uninstall Python packages - easily
simplejson 3.8.0 Simple, fast, extensible JSON (JavaScript Object Notation) encoder/decoder
six 1.9.0 Python 2 and 3 compatibility utilities
snowballstemmer 1.2.0 This package provides 16 stemmer algorithms (15 + Poerter English stemmer) generated from Snowball algorithms.
Sphinx 1.3.1 Tool for generating documentation which uses reStructuredText as its markup language
sphinx_rtd_theme 0.1.8 ReadTheDocs.org theme for Sphinx, 2013 version.
spyder 2.3.5.2 Scientific PYthon Development EnviRonment: designed for interactive computing and data visualisation with a simple and intuitive user interface
SQLAlchemy 1.0.8 SQL Toolkit and Object Relational Mapper
sqlite_bro 0.8.8 a graphic SQLite Client in 1 Python file
sqlparse 0.1.15 Non-validating SQL parser
statsmodels 0.6.1 Statistical computations and models for use with SciPy
sympy 0.7.6 Symbolic Mathematics Library
tables 3.2.1 Package based on HDF5 library for managing hierarchical datasets (extremely large amounts of data)
Theano 0.7.0 Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.
toolz 0.7.2 List processing tools and functional utilities
tornado 4.2.1 Scalable, non-blocking web server and tools (required for IPython notebook)
TTFQuery 1.0.5 FontTools-based package for querying system fonts
twine 1.5.0 Collection of utilities for interacting with PyPI
twitter 1.17.0 An API and command-line toolset for Twitter (twitter.com)
ViTables 2.1 Graphical tool for browsing and editing files in both HDF5 and PyTables formats
Werkzeug 0.10.4 The Swiss Army knife of Python web development
wheel 0.24.0 A built-package format for Python.
winpython 1.1 WinPython distribution tools, including WPPM (package manager)
xlrd 0.9.4 Extract data from Microsoft Excel spreadsheet files
XlsxWriter 0.7.3 A Python module for creating Excel XLSX files.
xray 0.5.2 N-D labeled arrays and datasets in Python

四、按技术栈解读核心包

4.1 科学计算与数值分析基石

这一层是 WinPython 发行版的立身之本,全部随附为预编译二进制(当时主要为 Windows 平台 wheel/安装包):

  • numpy 1.9.2+mkl:注意版本号中的 +mkl 后缀,表明该构建链接了 Intel MKL(Math Kernel Library),在矩阵运算上可获得显著加速;
  • scipy 0.16.0、numexpr 2.4.3(基于向量化虚拟机的数组表达式快速求值)、bcolz 0.10.0(列式压缩数据容器)、networkx 1.9.1(图与网络)、cvxopt 1.1.7(凸优化)、PuLP 1.5.9(线性规划建模,可对接 GLPK/COIN/CBC/CPLEX/GUROBI)、sympy 0.7.6(符号计算)、statsmodels 0.6.1(统计建模);
  • pandas 0.16.2 与 patsy 0.4.0(统计模型符号公式)、lmfit 0.8.3(带边界与约束的最小二乘拟合);
  • 高性能编译:Cython 0.22.1、numba 0.20.0 + llvmlite 0.6.0(LLVM 即时编译)、Theano 0.7.0(CPU/GPU 数学表达式优化编译器)与基于它的深度学习框架 Keras 0.1.2(当时仍是 0.x 早期版本);
  • 大数据与并行:dask 0.6.1(任务调度抽象)、blaze 0.8.2(统一异构数据计算接口)、odo 0.3.3(数据迁移)、datashape 0.4.6(数据描述语言)、partd 0.3.2(可追加的键值存储)、toolz 0.7.2 / cytoolz 0.7.3 / multipledispatch 0.4.8(函数式工具与多分派)、joblib 0.8.4(轻量流水线)。

4.2 海量数据文件格式支持

  • HDF5 生态:tables 3.2.1(PyTables) 与 h5py 2.5.0 并置,分别代表高层封装与直接暴露完整 HDF5 C 库两种风格;配套的可视化工具 ViTables 2.1 用于浏览/编辑 HDF5 与 PyTables 文件;
  • netCDF4 1.1.9 与 pyhdf 0.8.3 分别对接 netCDF 3/4 与 HDF4 格式,面向气象、海洋等科研数据场景;
  • xray 0.5.2 提供带标签的 N 维数组与数据集(pandas 风格的 xarray 前身);
  • Excel 办公场景由 xlrd 0.9.4(读)与 XlsxWriter 0.7.3(写)覆盖。

4.3 数据库与数据存取

WinPython 3.4.3.5 覆盖了当时主流的数据库访问方式:

  • 关系型:SQLAlchemy 1.0.8(ORM 与 SQL 工具包)、mysql_connector_python 2.0.4(纯 Python MySQL 驱动)、pg8000 1.10.2(PostgreSQL)、pyodbc 3.0.10(ODBC 通用接口)、adodbapi 2.6.0.7(基于 Microsoft ADO 的 PEP 249 DB-API 实现)、baresql 0.7.1(直接在 Python 数据上跑 SQL);
  • NoSQL:pymongo 3.0.3(MongoDB)、redis 2.10.3(Redis);
  • SQLite 工具链:sqlite_bro 0.8.8(单文件图形化 SQLite 客户端)、sqlparse 0.1.15(SQL 解析器)、ipython_sql 0.3.6(在 IPython 中直连 RDBMS);
  • db.py 0.4.4 作为轻量数据库封装也被收录。

4.4 可视化与图像处理

  • 静态/交互绘图:matplotlib 1.4.3、seaborn 0.6.0(统计可视化)、brewer2mpl 1.4.1(ColorBrewer 色板)、bokeh 0.9.2(交互式 HTML 绘图)、mpld3 0.2(matplotlib → D3 浏览器渲染)、holoviews 1.3.2(声明式可视化组合);
  • GUI 科学绘图:pyqtgraph 0.9.10、guiqwt 2.3.2、PyQwt 5.2.1(基于 Qwt 的快速二维绘图绑定);
  • 图像:scikit_image 0.11.3(图像处理工具箱)、Pillow 2.9.0(PIL 分支)、Polygon3 3.0.7(二维多边形处理);
  • 3D/图形:PyOpenGL 3.1.0。

4.5 GUI 与桌面应用开发

以 Qt 生态为核心:

  • PyQt4 4.11.4(当时 WinPython 默认的 Qt 绑定)与 PyQtdesignerplugins 1.1(为 Qt Designer 提供 Matplotlib/guiqwt 等插件);
  • guidata 1.6.2(自动生成数据集编辑 GUI)与 formlayout 1.0.15(零 GUI 代码创建参数编辑对话框);
  • 代码层面可印证:Distribution.handle_specific_packages()(wppm/wppm.py#L217-L240)在安装 PyQt4/PyQt5 等包时会自动生成 qt.conf(Prefix = .、Binaries = . 的相对路径配置,保证可移植性)、生成 pyuic4.bat/pyuic5.bat 启动脚本,并为 uic/Loader、uic/port_v2、uic/port_v3 补齐 __init__.py——这正是 WinPython 便携化 Qt 的关键机制。

4.6 交互计算环境与 Web

  • ipython 3.2.1(增强交互 shell)、jedi 0.9.0(补全引擎)、pyzmq 14.7.0(IPython Qt console 依赖)、tornado 4.2.1(IPython notebook 服务器依赖);
  • spyder 2.3.5.2 是随附的科学 Python IDE;源码中 patch_standard_packages()(wppm/wppm.py#L208-L214)会默认将 Spyder 的 'check_updates_on_startup' 从 True 改为 False,避免离线便携环境启动时联网检查更新;
  • Web 开发栈:Flask 0.10.1、Jinja2 2.7.3、Werkzeug 0.10.4、MarkupSafe 0.23、itsdangerous 0.24、requests 2.7.0、lxml 3.4.4、beautifulsoup4 4.4.0、PyYAML 3.11、jsonschema 2.5.1。

4.7 开发、代码质量、打包与文档

  • 代码质量:pylint 1.4.3(依赖 astroid 1.3.6 与 logilab_common 1.0.2)、pyflakes 0.9.2、pep8 1.6.2、nose 1.3.7(unittest 扩展);
  • 打包部署:pip 7.1.0、setuptools 17.1.1、wheel 0.24.0、twine 1.5.0(PyPI 上传)、cx_Freeze 4.3.4(打包为独立 Windows 可执行文件)、mingwpy 0.1.0b3(面向 Python 的 Windows 编译器工具链)、cffi 1.1.2 + pycparser 2.14(C 语言 FFI)、dill 0.2.3(几乎全对象可序列化)、pkginfo 1.2.1(查询包元数据);
  • 文档:Sphinx 1.3.1、alabaster 0.7.6、sphinx_rtd_theme 0.1.8、numpydoc 0.5、docutils 0.12、Pygments 2.0.2、Markdown 2.6.2、mistune 0.7、reportlab 3.2.0(PDF 生成);
  • 其他:PyAudio 0.2.8(音频 I/O)、pyserial 2.7(串口)、psutil 3.1.1(系统/进程监控)、pywin32 219(Windows 平台库)、greenlet 0.4.7(进程内并发)、locket.py 0.2.0(文件锁)、PyMeta3 0.5.1 / pybars3 0.9.1 / pystache 0.5.4(模板与模式匹配)、husl 4.0.2(颜色空间)、fonttools 2.5 / TTFQuery 1.0.5(字体处理)、python_dateutil 2.4.2 / pytz 2015.4 / Babel 1.3(时间与国际化)、simplejson 3.8.0、six 1.9.0、decorator 3.4.2、prettytable 0.7.2、colorama 0.3.3、oct2py 3.3.0 / scilab2py 0.6 / rpy2 2.6.1 / julia 0.1.1.8(对接 Octave/Scilab/R/Julia 的桥接)、snowballstemmer 1.2.0、nltk 3.0.4(自然语言处理)、cyordereddict 0.2.2、docopt 0.6.2 / click 4.1(CLI 解析)、certifi 2015.4.28(CA 证书包)、twitter 1.17.0(Twitter API)、winpython 1.1(本发行版自带的工具包,含 WPPM 包管理器)、rope_py3k 0.9.4.post1(重构库)。

从整体构成看,这份清单清晰地体现了 WinPython 的定位:开箱即用的科学计算发行版——从数值计算、数据处理、数据库、可视化到 GUI 开发与打包部署,一条链路全部预装,无需用户自行编译任何 C 扩展。

五、3.4.3.4 → 3.4.3.5 的版本变更明细

姊妹文档 changelogs/WinPython-3.4.3.5_History.md 记录了自 3.4.3.4 以来的全部变更,结构分为四类:移除的工具、新增的包、升级的包、移除的包。

5.1 移除的 Tools

Name Version 说明
MinGW32 4.9.2 C/C++ 与 Fortran 编译器(Mingwpy 静态工具链版本)
gettext 0.14.4 GNU gettext Win32 移植版(翻译工具,服务于标准库 pygettext)

两个独立工具的移除,与"新增 mingwpy 0.1.0b3 作为 Python 友好的编译器工具链"形成呼应——编译器能力从随附独立工具迁移到 Python 包体系中。

5.2 新增的 Python 包(14 个)

Name Version 说明
Markdown 2.6.2 Python 实现的 Markdown
PyAudio 0.2.8 PortAudio v19 绑定(跨平台音频输入输出)
blaze 0.8.2 统一异构数据计算
bokeh 0.9.2 交互式 HTML 统计绘图
greenlet 0.4.7 轻量进程内并发
holoviews 1.3.2 可组合的声明式可视化数据结构
locket.py 0.2.0 基于文件的跨平台锁
mingwpy 0.1.0b3 Python 友好的 Windows 编译器工具链
netCDF4 1.1.9 netCDF 3/4 的 Python/numpy 接口
param 1.3.2 基于 Parameters 的声明式 Python 编程
partd 0.3.2 可追加的键值存储
pystache 0.5.4 Mustache 模板的 Python 实现
twitter 1.17.0 Twitter API 与命令行工具集
xray 0.5.2 带标签的 N 维数组与数据集

这批新增明显偏向数据科学前沿方向:blaze/odo 数据生态(blaze、partd、xray 均属于该家族)、交互可视化(bokeh、holoviews)、以及音频与编译器支持。

5.3 升级的 Python 包(31 个)

Name 版本变化
Keras 0.1.1 → 0.1.2
Pillow 2.8.2 → 2.9.0
SQLAlchemy 1.0.5 → 1.0.8
alabaster 0.7.4 → 0.7.6
bcolz 0.9.0 → 0.10.0
beautifulsoup4 4.3.2 → 4.4.0
click 4.0 → 4.1
dask 0.5.0 → 0.6.1
datashape 0.4.5 → 0.4.6
dill 0.2.2 → 0.2.3
ipython 3.2.0 → 3.2.1
llvmlite 0.5.1 → 0.6.0
logilab_common 0.63.2 → 1.0.2
mistune 0.5.1 → 0.7
multipledispatch 0.4.7 → 0.4.8
nltk 3.0.2 → 3.0.4
numba 0.19.2 → 0.20.0
oct2py 3.2.0 → 3.3.0
odo 0.3.2 → 0.3.3
patsy 0.3.0 → 0.4.0
pip 7.0.3 → 7.1.0
psutil 3.0.0 → 3.1.1
pymongo 3.0.2 → 3.0.3
pyodbc 3.0.9 → 3.0.10
rpy2 2.6.0 → 2.6.1
scipy 0.15.1 → 0.16.0
seaborn 0.5.1 → 0.6.0
simplejson 3.7.3 → 3.8.0
tables 3.2.0 → 3.2.1
tornado 4.2 → 4.2.1
xlrd 0.9.3 → 0.9.4

其中值得注意的跨版本升级包括:scipy 0.15.1 → 0.16.0(科学计算主干)、numba 0.19.2 → 0.20.0 与 llvmlite 0.5.1 → 0.6.0(LLVM 编译链路)、pip 7.0.3 → 7.1.0(包管理核心)、mistune 0.5.1 → 0.7(Markdown 解析性能)。

5.4 移除的 Python 包(5 个)

Name Version 说明
VPython 5.74 实时 3D 场景渲染模块
ggplot 0.6.5 Python 版 ggplot 绘图
mahotas 1.2.4 计算机视觉库
runipy 0.1.3 命令行运行 IPython notebook
vispy 0.4.0 交互式可视化

移除 3D/视觉类包(VPython、mahotas、vispy)与绘图替代品(ggplot)的同时引入 bokeh/holoviews,体现了当时可视化栈的收敛方向。

六、changelog 的生成与对比:源码级工作机制

理解了清单内容后,再看仓库是如何"制造"这些文档的,能让你更准确地判断其可信度与边界。

6.1 索引的生成:wppm -md

在 wppm/wppm.py 中,Distribution.generate_package_index_markdown()(wppm/wppm.py#L116-L132)通过 render_markdown_for_list()(wppm/wppm.py#L73-L81)按 (名称小写, 版本) 排序渲染出 Name | Version | Description 三列表格。CLI 层面对应 wppm -md(markdown summary of the installation),数据来自 get_installed_packages() 的 pip list --full 结果(wppm/wppm.py#L64-L71)。

6.2 变更历史的生成:wppm -diff

changelogs/WinPython-3.4.3.5_History.md 这种"自上一个版本以来新增/升级/移除"的格式,正是由 wppm/diff.py 生成的:

  • PackageIndex(wppm/diff.py#L38-L59)将文档按 ### Tools、### Python packages、### WheelHouse packages 三个表头拆分为包字典,并跳过表头分隔行等"空行模板";
  • Package.PATTERNS(wppm/diff.py#L22-L25)用正则解析 name | version | description 行——这与本文档表格的每一行结构完全一致,所以 3.4.3.5 这份老式文档可以被当前工具直接解析;
  • compare_packages()(wppm/diff.py#L61-L74)对两个版本做集合差:出现在新版而不在旧版 → New packages;两边都有但版本不同 → Upgraded packages(输出为 旧版 → 新版);只在旧版 → Removed packages;
  • 版本间的"前一个版本"由 find_previous_version()(wppm/diff.py#L153-L160)依据 changelogs/ 目录中的文件名解析 PEP 440 版本号排序得出。

6.3 测试对格式的约束

仓库的测试进一步固化了这套约定:

  • tests/test_diff_versions.py 验证 find_previous_version 能正确处理带发布等级(如 3.14.7.1b1)的版本,确保 b1 介于 .0 与 .1 之间;
  • tests/test_changelog_files.py 验证发布产物的归档选择:只保留 WinPython*.md(包索引)、pylock.*.toml 与 requir.*.txt,且不再为每个版本生成 _History.md 配套文件——现代流程改为让读者用 wppm -diff a.md b.md 自行对比任意两个索引(该测试的模块 docstring 对此有明确说明)。3.4.3.5 时代的 _History.md 因此属于历史构建流程的产物。

七、用 wppm -diff 自行对比任意两个版本

如果你不想依赖现成的 History 文件,仓库提供了通用的对比命令(无需部署目标发行版,只读取两个文件):

# 对比两个包索引的全部小节(任意顺序、任意 flavor 均可)
wppm -diff changelogs/WinPython-3.4.3.5.md changelogs/WinPythonQt5-3.4.3.5.md

# 也可以直接以模块方式运行
python -m wppm.diff changelogs/WinPython-3.4.3.5.md changelogs/WinPython-3.4.3.6.md

# 只对比某一小节
python -m wppm.diff file1.md file2.md --section python python

# 按小节配对对比(例如 python 对 wheelhouse、tools 对 tools)
python -m wppm.diff file1.md file2.md --pairs python wheelhouse tools tools

CLI 帮助信息见 wppm/wppm.py#L348-L349,其示例为 wppm -diff WinPythonslim-64bit-3.13.5.0.md WinPythonslim-64bit-3.14.7.0.md。输出格式即 History 文件的风格:升级行写作 旧版本 → 新版本,因此对比两个文件时注意方向(工具会在文件模式下依据文件名生成 Changes from X to Y 标题辅助判断)。

八、阅读与使用 changelog 的注意事项

  • 命名演变的兼容边界:当前 diff.py 的版本扫描正则 WinPython{flavor}-{architecture}bit-(.+)\.(?:txt|md)$(wppm/diff.py#L141)只匹配带 bit 后缀的现代文件名;从该正则可推断,WinPython-3.4.3.5.md 这类无位数后缀的历史文件不会被 find_previous_version 计入版本链,但手动 wppm -diff 指定文件路径不受影响。
  • 描述文本的性质:表格中的 Description 是包元数据摘要(utils.sum_up() 取首行),用于快速识别用途;精确的依赖与能力请以发行版内 pip show <包名> 或各包自身文档为准。
  • 版本风味(flavor):同一版本号可能存在多个风味变体(如标准版 WinPython-3.4.3.5.md 与 Qt5 版 WinPythonQt5-3.4.3.5.md),对比时应保持风味一致。现代构建中 flavor(dot、slim、slimf 等)由 winpython_builds.toml 定义(每个 flavor 指定 requirements、source_dirs、toolsdirs),并通过 generate_a_winpython_distropy_meta.bat 驱动构建。
  • 环境前提:运行 wppm 需要 Python 3.10+,运行构建工具链需要 Python 3.11+(见 README.rst 的 Dependencies 一节与 pyproject.toml 的 requires-python = ">=3.10")。

结语

changelogs/WinPython-3.4.3.5.md 远不止是一份"更新日志":它是 WinPython 3.4.3.5 这个可移植科学计算发行版的完整成分快照——从基于 MKL 的 numpy/scipy 数值核心,到 pandas/Blaze 数据生态、HDF5/netCDF 数据格式、Qt 图形界面栈,再到打包与文档工具链,140 个预编译包构成了一个可独立运作的科研计算环境。结合 wppm/wppm.py 与 wppm/diff.py 的源码,你既可以读懂任何一份历史清单,也可以随时用 wppm -diff 亲手复现两个版本之间的差异分析。

登录后查看全文
winpython