1977 Commits

Author SHA1 Message Date
Victor Stinner
f01c0ec9fe bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) (#1626)
compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
(cherry picked from commit dbdea629e2)
2017-05-16 17:59:24 -07:00
Victor Stinner
ab6b962ef2 bpo-23404: make touch becomes make regen-all (#1405) (#1461) (#1465)
* bpo-23404: make touch becomes make regen-all (#1405)

Don't rebuild generated files based on file modification time
anymore, the action is now explicit. Replace "make touch"
with "make regen-all".

Changes:

* Remove "make touch", Tools/hg/hgtouch.py and .hgtouch
* Add a new "make regen-all" command to rebuild all generated files
* Add subcommands to only generate specific files:

  - regen-ast: Include/Python-ast.h and Python/Python-ast.c
  - regen-grammar: Include/graminit.h and Python/graminit.c
  - regen-importlib: Python/importlib_external.h and Python/importlib.h
  - regen-opcode: Include/opcode.h
  - regen-opcode-targets: Python/opcode_targets.h
  - regen-typeslots: Objects/typeslots.inc

* Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN
* pgen is now only built by by "make regen-grammar"
* Add $(srcdir)/ prefix to paths to source files to handle correctly
  compilation outside the source directory

Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make"
default target building Python.
(cherry picked from commit a5c62a8e9f)

* bpo-30273: Update sysconfig (#1464)

The AST_H_DIR variable was removed from Makefile.pre.in by the commit
a5c62a8e9f (bpo-23404).

AST_H_DIR was hardcoded to "Include", so replace the removed variable
by its content.

Remove also ASDLGEN variable from sysconfig example since this
variable was also removed.
(cherry picked from commit b109a1d336)

(cherry picked from commit 9d02f56296)
2017-05-05 02:19:59 +02:00
Victor Stinner
3ceeb84b5a bpo-30132: distutils BuildExtTestCase use temp_cwd (#1387) (#1388)
BuildExtTestCase of test_distutils now uses support.temp_cwd() in
setUp() to remove files created in the current working in all
BuildExtTestCase unit tests, not only test_build_ext().

Fix the following warning:

Warning -- files was modified by test_distutils
  Before: []
  After:  ['vc140.pdb']
(cherry picked from commit 3076895849)
2017-05-02 16:26:04 +02:00
Martin Panter
2f9171d900 Fix spelling and grammar in code comments and documentation 2016-12-18 01:23:09 +00:00
Steve Dower
4347881414 Issue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe 2016-12-13 09:06:24 -08:00
Serhiy Storchaka
0211bb78fd Some distutils tests require zlib for creating tar.gz source distribution. 2016-10-23 22:56:14 +03:00
Berker Peksag
b5bb404cca Issue #28222: Don't fail if pygments is not available
We can't just skip the test if docutils is available,
but pygments is not because the purpose of the test
was testing a bug in _check_rst_data().
2016-10-04 20:54:44 +03:00
Benjamin Peterson
4254e8c548 build_ext: correctly parse the link_objects user option (closes #1703178)
Patch by Valerie Lambert.
2016-09-28 23:13:58 -07:00
Martin Panter
0be894b2f6 Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-09-07 12:03:06 +00:00
Jason R. Coombs
b44c849de4 Merge backout for test suite fix 2016-09-01 21:59:46 -04:00
Jason R. Coombs
8ac147d6ee Backed out changeset cc86e9e102e8 2016-09-01 21:55:22 -04:00
Jason R. Coombs
65e3319283 Issue #12285: Merge with 3.4 2016-09-01 21:15:04 -04:00
Donald Stufft
ef330d35c8 Merge 3.4 2016-08-03 18:49:19 -04:00
Donald Stufft
c6c2217f27 Merge 3.3 2016-08-03 18:48:17 -04:00
Donald Stufft
fb7929044a Switch upload.pypi.io to upload.pypi.org 2016-08-03 18:43:38 -04:00
Stefan Krah
9de620e970 Issue #20767: Fix -R option for FreeBSD/clang. 2016-08-03 11:18:26 +02:00
Martin Panter
204bf0b9ae English spelling and grammar fixes 2016-07-11 07:51:37 +00:00
Donald Stufft
a1fc45ae73 Fix a test with the new upload URL 2016-07-06 17:46:37 -04:00
Benjamin Peterson
9409b4aa8f merge 3.4 2016-07-06 14:00:38 -07:00
Donald Stufft
ad04a85aff Switch to the new upload url for PyPI 2016-07-06 16:18:39 -04:00
Donald Stufft
188c118ba5 Switch to the new upload url for PyPI 2016-07-06 15:27:35 -04:00
Berker Peksag
91d53e7b20 Make PyPIRCCommandTestCase derive from a base class
Several test cases in distutils use PyPIRCCommandTestCase as
their base class and as a result of that the following tests
were ran more than once:

* test_server_registration
* test_server_empty_registration
* test_config_interpolation

This commit moves the infrastructure used by other tests
into a new BasePyPIRCCommandTestCase class.
2016-06-24 08:48:27 +03:00
Berker Peksag
c529af3fcb Issue #20120: Add a test case to verify the % char can be used in .pypirc
I noticed that there is no test for this feature while doing
triaging work on pypa/pypi-legacy.
2016-06-20 21:41:34 +03:00
Berker Peksag
56fe4749fb Issue #27349: Fix typo in distutils upload command 2016-06-18 21:42:37 +03:00
Steve Dower
08bb8a41cc Issue #27048: Prevents distutils failing on Windows when environment variables contain non-ASCII characters 2016-06-17 09:32:38 -07:00