Skip to content

bpo-30871: Add "make pythoninfo" #3120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2017
Merged

bpo-30871: Add "make pythoninfo" #3120

merged 1 commit into from
Aug 18, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Aug 17, 2017

This command will be used on buildbots to easily run "./python -m test.pythoninfo" in a dedicated buildbot step. The tricky part is to build the command to run Python: when shared library is enabled, "./python.exe" on macOS, etc.

https://bugs.python.org/issue30871

@@ -1037,6 +1039,9 @@ buildbottest: build_all platform
fi
$(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --timeout=$(TESTTIMEOUT) $(TESTOPTS)

pythoninfo: build_all
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitate between "build_all" and "$(BUILDPYTHON)".

Using build_all, "make pythoninfo" runs again setup.py to try to build extensions, as done by "make buildbottest". I expect that running setup.py multiple times has no side effect.

Using $(BUILDPYTHON), "make pythoninfo" fails from a fresh build because basic modules like _posixsubprocess are not built yet.

@vstinner vstinner merged commit a3a01a2 into python:master Aug 18, 2017
@vstinner vstinner deleted the make_pythoninfo branch August 18, 2017 09:45
vstinner added a commit that referenced this pull request Aug 21, 2017
* bpo-30871: Add test.pythoninfo (#3075)

* Add Lib/test/pythoninfo.py: script collecting various informations
  about Python to help debugging test failures.
* regrtest: remove sys.hash_info and sys.flags from header.
* Travis CI, Appveyor: run pythoninfo before tests
(cherry picked from commit b907abc)

* bpo-30871: pythoninfo: add expat and _decimal (#3121)

* bpo-30871: pythoninfo: add expat and _decimal

* Remove _decimal.__version__

The string is hardcoded, not really interesting.

(cherry picked from commit f6ebd83)

* bpo-30871: Add "make pythoninfo" (#3120)

(cherry picked from commit a3a01a2)

* bpo-30871: pythoninfo: more sys, os, time data (#3130)

* bpo-30871: pythoninfo: more sys, os, time data

PythonInfo now converts types other than intger to string by default.

* fix typo

(cherry picked from commit ad7eaed)

* bpo-31231: Fix pythoninfo in Travis config (#3134)

bpo-31231, bpo-30871: Replace "./python -m test.pythoninfo" with
"make pythoninfo", since macOS uses ./python.exe.
(cherry picked from commit 92b1f90)
vstinner added a commit that referenced this pull request Aug 22, 2017
* bpo-30871: Add test.pythoninfo (#3075)

* Add Lib/test/pythoninfo.py: script collecting various informations
  about Python to help debugging test failures.
* regrtest: remove sys.hash_info and sys.flags from header.
* Travis CI, Appveyor: run pythoninfo before tests
(cherry picked from commit b907abc)

* bpo-30871: pythoninfo: add expat and _decimal (#3121)

* bpo-30871: pythoninfo: add expat and _decimal

* Remove _decimal.__version__

The string is hardcoded, not really interesting.

(cherry picked from commit f6ebd83)

* bpo-30871: Add "make pythoninfo" (#3120)

(cherry picked from commit a3a01a2)

* bpo-30871: pythoninfo: more sys, os, time data (#3130)

* bpo-30871: pythoninfo: more sys, os, time data

PythonInfo now converts types other than intger to string by default.

* fix typo

(cherry picked from commit ad7eaed)

* bpo-31231: Fix pythoninfo in Travis config (#3134)

bpo-31231, bpo-30871: Replace "./python -m test.pythoninfo" with
"make pythoninfo", since macOS uses ./python.exe.
(cherry picked from commit 92b1f90)

(cherry picked from commit 29d007b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants