Miss Islington (bot)
b4cd6ba1a0
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
...
The distutils bdist_wininst command is now deprecated, use
bdist_wheel (wheel packages) instead.
(cherry picked from commit 1da4462765
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-07-05 02:03:23 -07:00
Miss Islington (bot)
0aefba7f99
bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)
...
test_distutils.test_build_ext() is now able to remove the temporary
directory on Windows: don't import the newly built C extension ("xx")
in the current process, but test it in a separated process.
(cherry picked from commit 74c9dd5777
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-07-03 02:48:14 -07:00
Miss Islington (bot)
bb3e8a68b2
bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)
...
(cherry picked from commit daf6262751
)
Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
2019-06-12 10:44:29 -07:00
Victor Stinner
228a3c99bd
bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)
...
shutil.which() and distutils.spawn.find_executable() now use
os.confstr("CS_PATH") if available instead of os.defpath, if the PATH
environment variable is not set.
Don't use os.confstr("CS_PATH") nor os.defpath if the PATH
environment variable is set to an empty string to mimick Unix 'which'
command behavior.
Changes:
* find_executable() now starts by checking for the executable in the
current working directly case. Add an explicit
"if not path: return None".
* Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
2019-04-17 16:26:36 +02:00
Victor Stinner
a9bd8925c7
bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)
...
Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().
2019-04-11 01:38:48 +02:00
Philipp A
d5a5a33f12
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
2019-03-27 17:34:19 -04:00
Victor Stinner
72c7b372cf
bpo-36235: Enhance distutils test_customize_compiler() (GH-12403)
...
The test test_customize_compiler() now mocks all sysconfig variables
and all environment variables used by customize_compiler().
2019-03-18 17:19:02 +01:00
Victor Stinner
86082c22d2
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236)
...
Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.
Initial patch written by David Malcolm.
Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
2019-03-15 14:57:52 +01:00
Anthony Sottile
25ec4a45dc
bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)
2019-03-12 08:39:57 -07:00
Steve Dower
85e102a2b0
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
2019-02-04 17:15:13 -08:00
Michael Felt
ed57e13df6
bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)
...
Command line options for the xlc compiler behave differently from gcc and clang,
so skip this test case for now when xlc is the compiler.
Patch by aixtools (Michael Felt)
2018-12-29 00:03:17 +10:00
Victor Stinner
17d0c0595e
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
...
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
2018-12-18 16:17:56 +01:00
Serhiy Storchaka
67a93b3a0b
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)
2018-12-05 21:46:25 +02:00
Serhiy Storchaka
24b447edf2
Use in-memory streams instead of NamedTemporaryFile. (GH-9508)
2018-09-23 14:10:07 +03:00
Serhiy Storchaka
4b860fd777
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)
...
Use "backslashreplace" instead of "unicode-escape". It is not
implementation depended and escapes only non-encodable characters.
Also simplify the code.
2018-09-23 09:12:59 +03:00
Steve Dower
f14c28f397
bpo-34011: Fixes missing venv files and other tests (GH-9458)
2018-09-20 13:38:34 -07:00
Victor Stinner
39487196c8
bpo-34530: Fix distutils find_executable() (GH-9049)
...
distutils.spawn.find_executable() now falls back on os.defpath if the
PATH environment variable is not set.
2018-09-04 11:01:09 +02:00
Bo Bayles
2fc98ae115
bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)
...
Patch by Bo Bayles.
2018-01-25 19:02:03 -05:00
Neil Schemenauer
8837dd092f
bpo-19610: Warn if distutils is provided something other than a list to some fields ( #4685 )
...
* Rather than raise TypeError, warn and call list() on the value.
* Fix tests, revise NEWS and whatsnew text.
* Revise documentation, a string is okay as well.
* Ensure 'requires' and 'obsoletes' are real lists.
* Test that requires and obsoletes are turned to lists.
2017-12-04 18:58:12 -08:00
Berker Peksag
dcaed6b2d9
bpo-19610: setup() now raises TypeError for invalid types (GH-4519)
...
The Distribution class now explicitly raises an
exception when 'classifiers', 'keywords' and
'platforms' fields are not specified as a list.
2017-11-23 21:34:20 +03:00
xdegaye
d34d8fc24f
bpo-29185: Fix `test_distutils` failures on Android (GH-4438)
...
* Run gzip with separate command line options (Android understands '-f9' as the name of a file).
* Creation of a hard link is controled by SELinux on Android.
2017-11-18 18:17:16 +01:00
Steve Dower
05f01d8525
bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler ( #1632 )
2017-09-07 11:49:23 -07:00
Zachary Ware
49ce74efe8
Remove all mention of Windows IA-64 support (GH-3389)
...
It was mostly removed long ago.
2017-09-06 15:45:25 -07:00
Benjamin Peterson
069306312a
remove IRIX support (closes bpo-31341) ( #3310 )
...
See PEP 11.
2017-09-04 16:36:05 -07:00
Victor Stinner
92fd6c9ef5
bpo-30132: distutils BuildExtTestCase use temp_cwd ( #1380 )
...
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().
Move also tearDown() just after setUp().
2017-05-02 13:11:50 +02:00
Victor Stinner
f6448e5d65
bpo-30132: distutils test_build_ext() uses temp_cwd() ( #1278 )
...
test_build_ext() of test_distutils now uses support.temp_cwd() to
prevent the creation of a pdb file in the current working directory
on Windows.
2017-04-25 02:11:09 +02:00
Martin Panter
fff07e34fa
Merge spelling and grammar from 3.5
2016-12-18 05:37:21 +00:00
Martin Panter
2f9171d900
Fix spelling and grammar in code comments and documentation
2016-12-18 01:23:09 +00:00
Xavier de Gaye
dfc13e069a
Issue 26931: Skip the test_distutils tests using a compiler executable
...
that is not found
2016-11-17 09:00:19 +01:00
Serhiy Storchaka
cb637fa231
Some distutils tests require zlib for creating tar.gz source distribution.
2016-10-23 22:58:06 +03: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
Berker Peksag
d3dbba4174
Issue #28222 : Merge from 3.5
2016-10-04 20:55:26 +03:00
Benjamin Peterson
095e32bfc5
merge 3.5 ( #1703178 )
2016-09-28 23:17:04 -07: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
Serhiy Storchaka
bd48d27944
Issue #22493 : Inline flags now should be used only at the start of the
...
regular expression. Deprecation warning is emitted if uses them in the
middle of the regular expression.
2016-09-11 12:50:02 +03: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
Jason R. Coombs
9650b19212
Merge backout for test suite fix
2016-09-01 22:00:03 -04:00
Jason R. Coombs
75fbf87d73
Issue #12885 : Merge with 3.5
2016-09-01 21:16:32 -04:00
R David Murray
8890bb2264
#27904 : fix distutils tests.
...
Patch by Ville Skyttä.
2016-08-31 11:39:35 -04:00
Raymond Hettinger
15f44ab043
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-08-30 10:47:49 -07:00
Donald Stufft
2af36ac04f
Merge 3.5
2016-08-03 18:49:46 -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
Xavier de Gaye
d141531eb5
Issue #27472 : Add test.support.unix_shell as the path to the default shell.
2016-07-22 12:15:29 +02:00
Martin Panter
702f4f5d6f
Issue #23804 : Merge spelling and NEWS fixes from 3.5
2016-07-11 12:54:44 +00:00