[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-18 Thread STINNER Victor
STINNER Victor added the comment: Nick Coghlan: "If we end up deciding some of this information might be useful to end users as well, it would be reasonable to extend "python -m sysconfig" to report it, perhaps with the extra imports gated behind a command line option." Designing such tool is

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-18 Thread Nick Coghlan
Nick Coghlan added the comment: If we end up deciding some of this information might be useful to end users as well, it would be reasonable to extend "python -m sysconfig" to report it, perhaps with the extra imports gated behind a command line option. -- nosy: +ncoghlan

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset ad7eaed54382b346784e51a6f0122ce81e8842b5 by Victor Stinner in branch 'master': bpo-30871: pythoninfo: more sys, os, time data (#3130) https://github.com/python/cpython/commit/ad7eaed54382b346784e51a6f0122ce81e8842b5 --

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-18 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3164 ___ Python tracker ___ ___

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset a3a01a2fceab2188b282ab9911f79c99a4c32273 by Victor Stinner in branch 'master': bpo-30871: Add "make pythoninfo" (#3120) https://github.com/python/cpython/commit/a3a01a2fceab2188b282ab9911f79c99a4c32273 --

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset f6ebd838f00b4c211c72d85ee49749e910cd3afe by Victor Stinner in branch 'master': bpo-30871: pythoninfo: add expat and _decimal (#3121) https://github.com/python/cpython/commit/f6ebd838f00b4c211c72d85ee49749e910cd3afe --

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: python -m test.pythoninfo crashes for me on Win10, debug32, but I don't think it is the fault of pythoninfo. See #31288. -- nosy: +terry.reedy ___ Python tracker

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3160 ___ Python tracker ___ ___

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
STINNER Victor added the comment: > I plan to backport Lib/test/pythoninfo.py and "make pythoninfo" to Python 2.7 > and 3.6 to ease debug on all supported Python branches. Oh, but I will first only run pythoninfo on buildbot for the master branch, since I expect surprises depending on the

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/cpython/pull/3120 to add "make pythoninfo" because it's more tricky than what I expected to run "./python -m test.pythoninfo" on buildbots. Depending if Python is built with shared library, depending on the OS (./python, or

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3158 ___ Python tracker ___ ___

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b907abc88589f7bea52c5afe172ececc6edcda70 by Victor Stinner in branch 'master': bpo-30871: Add test.pythoninfo (#3075) https://github.com/python/cpython/commit/b907abc88589f7bea52c5afe172ececc6edcda70 --

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "For example TCL_VERSION and TK_VERSION are static versions (they should be equal in modern Tcl/Tk), and Tcl command "info patchlevel" returns the dynamic version." Ok, I added tkinter.patchlevel info which calls "info patchlevel". Serhiy: "In the

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-16 Thread STINNER Victor
STINNER Victor added the comment: Berker: "2. Could you also add version information of sqlite3?" Sure, done. -- ___ Python tracker ___

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Sorry, version of what? Versions of any external library. Python can be built with headers of one version, but dynamically load the library of other version. For example TCL_VERSION and TK_VERSION are static versions (they should be equal in modern

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-11 Thread Berker Peksag
Berker Peksag added the comment: Two things: 1. I've just closed PR 2618 as the scope of this issue is broader than my PR. 2. Could you also add version information of sqlite3? -- nosy: +berker.peksag stage: -> patch review ___ Python tracker

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-11 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +3116 ___ Python tracker ___ ___

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-11 Thread STINNER Victor
STINNER Victor added the comment: Nir Soffer: "I like the idea, may be also useful in https://github.com/sosreport/sos/blob/master/sos/plugins/python.py; It's hard to guess which kinds of informations are needed. My use case is to debug failing tests on the Python CIs. Other use cases may

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-11 Thread STINNER Victor
STINNER Victor added the comment: I wrote https://github.com/python/cpython/pull/3075 to add "python3 -m test.pythoninfo". I chose to add the script into Lib/test/ to notice users that it's design for Python internal usage, for Python tests. I modified scripts running tests on our CI to also

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-08-11 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3112 ___ Python tracker ___ ___

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Something like the CLI of modules site, sysconfig and platform? Note that there are two versions: the version with which the interpreter is build, and the version of the dynamic library. -- nosy: +serhiy.storchaka

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-07-07 Thread Nir Soffer
Nir Soffer added the comment: I like the idea, may be also useful in https://github.com/sosreport/sos/blob/master/sos/plugins/python.py -- nosy: +Nir Soffer ___ Python tracker

[issue30871] Add a "python info" command somewhere to dump versions of all dependencies

2017-07-07 Thread STINNER Victor
New submission from STINNER Victor: While discussing how to dump the readline version in regrtest or test_readline in bpo-29854, I proposed to add a new buildbot step to dump any kinds of debug information. It would avoid to pollute test output with useless information. For example, while the