summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19340: Fix test_sysconfig when Python is built with an empty prefix.Antoine Pitrou2013-10-231-2/+4
| | | | Patch by Sunny K.
* Issue #15364: Fix test_srcdir for the installed case.Ned Deily2012-07-281-1/+2
|
* Issue #15364: Fix sysconfig.get_config_var('srcdir') to be an absolute path.Richard Oudkerk2012-07-271-0/+28
|
* Issue #15184: Ensure consistent results of OS X configurationNed Deily2012-07-211-1/+9
| | | | | | | tailoring for universal builds by factoring out common OS X-specific customizations from sysconfig, distutils.sysconfig, distutils.util, and distutils.unixccompiler into a new module _osx_support that can eventually also be used by packaging.
* Issue #15118: Change return value of os.uname() and os.times() fromLarry Hastings2012-06-241-3/+2
| | | | | plain tuples to immutable iterable objects with named attributes (structseq objects).
* Packaging removal: also revert introduction of sysconfig.cfg.Éric Araujo2012-06-241-7/+8
| | | | | | | We need a discussion to define what should be customized how; this new config file is premature. It was added to serve the needs of the resources system in install_data / packaging.database, so it can be removed alongside packaging for 3.3.
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-3/+8
|
* convince regrtest.py we aren't modifying _CONFIG_VARSBenjamin Peterson2012-01-041-2/+3
|
* Merge fixes for #10526, #10359, #11254, #9100 and the bug without numberÉric Araujo2011-10-081-2/+9
|\
| * Fix test_sysconfig when prefix != exec-prefix (#9100).Éric Araujo2011-10-071-6/+9
| | | | | | | | | | | | | | | | I tested this manually; it would be great to have buildbots using installed Pythons, including Pythons configured with different prefix and exec-prefix. Reported by Zsolt Cserna.
* | A few style changes originally done in the distutils2 repoÉric Araujo2011-09-181-9/+7
| |
* | Merge fix for #10086 from 3.2Éric Araujo2011-08-311-2/+2
|\ \ | |/
| * Fix test_sysconfig when run from a Python installed under /site (#10086).Éric Araujo2011-08-311-2/+2
| | | | | | | | Patch by Hallvard B Furuseth.
* | Explicitly close a file to stop raising a ResourceWarning.Brett Cannon2011-08-051-12/+13
| |
* | Branch mergeÉric Araujo2011-05-261-15/+4
|\ \
| * | Minor cleanup in sysconfig.Éric Araujo2011-05-251-15/+0
| | | | | | | | | | | | Also remove outdated and unhelpful docstrings in test_sysconfig.
* | | (Merge 3.2) Issue #12070: Fix the Makefile parser of the sysconfig module toVictor Stinner2011-05-241-10/+24
|\ \ \ | |/ / |/| / | |/ handle correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
| * Issue #12070: Fix the Makefile parser of the sysconfig module to handleVictor Stinner2011-05-241-10/+24
| | | | | | | | correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
* | initial import of the packaging package in the standard libraryTarek Ziade2011-05-191-12/+15
|/
* Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set ↵Ronald Oussoren2011-05-151-3/+53
| | | | | | | | | in shell. Without this patch python will fail to start properly when the environment variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is not compatible with the value during Python's build. This is caused by code in sysconfig that was only meant to be used in disutils.
* Fix #9333. The symlink function is always available now, raising OSErrorBrian Curtin2010-12-281-3/+2
| | | | when the user doesn't hold the symbolic link privilege rather than hiding it.
* Fix #9333. Expose os.symlink on Windows only when usable.Brian Curtin2010-12-021-2/+3
| | | | | | | | | | | | | | | | In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-18/+18
|
* test_get_makefile_filename() is not compatible with Windows.Barry Warsaw2010-09-201-0/+2
|
* Issue 9877: expose sysconfig.get_makefile_filename() in the public API.Barry Warsaw2010-09-201-0/+4
|
* Skip this test as it doesn't apply to Windows. It was added forBrian Curtin2010-07-221-0/+1
| | | | #9189 for some GCC flags.
* This patch adds a testcase that demonstrates a problemRonald Oussoren2010-07-191-0/+6
| | | | | | | | | with the expansion of LDSHARED when accessing that value through sysconfig. The problem is probably caused by the 9189. A fix will follow shortly.
* Re-flow several long lines from #1578269.Brian Curtin2010-07-091-2/+2
|
* Implement #1578269. Patch by Jason R. Coombs.Brian Curtin2010-07-081-4/+10
| | | | | | | | | | | | | | | | Added Windows support for os.symlink when run on Windows 6.0 or greater, aka Vista. Previous Windows versions will raise NotImplementedError when trying to symlink. Includes numerous test updates and additions to test_os, including a symlink_support module because of the fact that privilege escalation is required in order to run the tests to ensure that the user is able to create symlinks. By default, accounts do not have the required privilege, so the escalation code will have to be exposed later (or documented on how to do so). I'll be following up with that work next. Note that the tests use ctypes, which was agreed on during the PyCon language summit.
* Made sysconfig a script that displays useful information - #8770Tarek Ziadé2010-05-251-2/+10
|
* Merged revisions 81371 via svnmerge fromTarek Ziadé2010-05-191-1/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81371 | tarek.ziade | 2010-05-20 00:20:14 +0200 (Thu, 20 May 2010) | 1 line #8759: Fixed user paths in sysconfig for posix and os2 schemes ........
* Merged revisions 80986-80987 via svnmerge fromBenjamin Peterson2010-05-081-2/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80986 | benjamin.peterson | 2010-05-08 10:41:44 -0500 (Sat, 08 May 2010) | 1 line r80967 introduced a new scheme ........ r80987 | benjamin.peterson | 2010-05-08 10:42:29 -0500 (Sat, 08 May 2010) | 1 line add underscore ........
* Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-1/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* Merged revisions ↵Georg Brandl2010-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78018 | georg.brandl | 2010-02-06 11:08:21 +0100 (Sa, 06 Feb 2010) | 1 line #7864: make deprecation notices a bit clearer. ........ r78035 | georg.brandl | 2010-02-06 23:44:17 +0100 (Sa, 06 Feb 2010) | 1 line Fix duplicate import. ........ r78036 | georg.brandl | 2010-02-06 23:49:47 +0100 (Sa, 06 Feb 2010) | 1 line Remove unused import. ........ r78037 | georg.brandl | 2010-02-06 23:59:15 +0100 (Sa, 06 Feb 2010) | 1 line No need to assign the results of expressions used only for side effects. ........ r78038 | georg.brandl | 2010-02-07 00:02:29 +0100 (So, 07 Feb 2010) | 1 line Add a missing import. ........ r78039 | georg.brandl | 2010-02-07 00:06:24 +0100 (So, 07 Feb 2010) | 1 line Add missing imports. ........ r78040 | georg.brandl | 2010-02-07 00:08:00 +0100 (So, 07 Feb 2010) | 1 line Fix a few UnboundLocalErrors in test_long. ........ r78042 | georg.brandl | 2010-02-07 00:12:12 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........ r78043 | georg.brandl | 2010-02-07 00:12:19 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........ r78046 | georg.brandl | 2010-02-07 00:18:00 +0100 (So, 07 Feb 2010) | 1 line Fix various missing import/unbound name errors. ........ r78048 | georg.brandl | 2010-02-07 00:23:45 +0100 (So, 07 Feb 2010) | 1 line We heard you like test failures so we put unbound locals in your test so that you can fail while you fail. ........ r78049 | georg.brandl | 2010-02-07 00:33:33 +0100 (So, 07 Feb 2010) | 1 line Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed? ........ r78050 | georg.brandl | 2010-02-07 00:34:10 +0100 (So, 07 Feb 2010) | 1 line Fix more unbound locals in code paths that do not seem to be used. ........ r78051 | georg.brandl | 2010-02-07 00:53:52 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78052 | georg.brandl | 2010-02-07 00:54:04 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78054 | georg.brandl | 2010-02-07 00:58:25 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........ r78059 | georg.brandl | 2010-02-07 12:34:15 +0100 (So, 07 Feb 2010) | 1 line Use "regexp" consistently. ........ r78075 | georg.brandl | 2010-02-07 13:16:12 +0100 (So, 07 Feb 2010) | 1 line Fix another duplicated test method. ........ r78076 | georg.brandl | 2010-02-07 13:19:43 +0100 (So, 07 Feb 2010) | 1 line Fix wrong usage of "except X, Y:". ........ r78077 | georg.brandl | 2010-02-07 13:25:50 +0100 (So, 07 Feb 2010) | 1 line Fix two redefined test methods. ........ r78078 | georg.brandl | 2010-02-07 13:27:06 +0100 (So, 07 Feb 2010) | 1 line Fix a redefined test method. ........ r78079 | georg.brandl | 2010-02-07 13:34:26 +0100 (So, 07 Feb 2010) | 1 line Add a minimal test for fnmatchcase(). ........ r78080 | georg.brandl | 2010-02-07 13:55:12 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........
* Merged revisions 78832 via svnmerge fromFlorent Xicluna2010-03-131-3/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78832 | florent.xicluna | 2010-03-11 02:39:55 +0100 (jeu, 11 mar 2010) | 2 lines It is not optimal to test sys.stderr on a debug build. ........
* Merged revisions 78828 via svnmerge fromFlorent Xicluna2010-03-111-1/+19
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78828 | florent.xicluna | 2010-03-11 00:58:42 +0100 (jeu, 11 mar 2010) | 2 lines Issue #7880: Fix sysconfig when the python executable is a symbolic link. ........
* Merged revisions 77712,77740-77741,77756,77886,77902,77936 via svnmerge fromBenjamin Peterson2010-02-031-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77712 | tarek.ziade | 2010-01-23 11:52:57 -0600 (Sat, 23 Jan 2010) | 1 line fixed the 64bits tests for get_platform() - mac osx ........ r77740 | benjamin.peterson | 2010-01-24 21:58:21 -0600 (Sun, 24 Jan 2010) | 1 line compare types with is not == ........ r77741 | facundo.batista | 2010-01-25 00:15:01 -0600 (Mon, 25 Jan 2010) | 3 lines Added a note about Event.is_set() syntax being new to 2.6 ........ r77756 | tarek.ziade | 2010-01-26 11:20:37 -0600 (Tue, 26 Jan 2010) | 1 line fixed bdist_msi imports and added a test module for distutils.command.bdist_msi ........ r77886 | benjamin.peterson | 2010-01-31 12:09:34 -0600 (Sun, 31 Jan 2010) | 1 line move distutils.rst to different toc ........ r77902 | andrew.kuchling | 2010-01-31 20:04:26 -0600 (Sun, 31 Jan 2010) | 1 line Add various items ........ r77936 | andrew.kuchling | 2010-02-02 20:19:14 -0600 (Tue, 02 Feb 2010) | 1 line Add various items ........
* Merged revisions 77919,77921-77922 via svnmerge fromTarek Ziadé2010-02-021-1/+7
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77919 | tarek.ziade | 2010-02-02 23:50:23 +0100 (Tue, 02 Feb 2010) | 1 line module reorganization + missing doctests ........ r77921 | tarek.ziade | 2010-02-02 23:54:28 +0100 (Tue, 02 Feb 2010) | 1 line sysconfig.get_scheme_names now returns a sorted tuple ........ r77922 | tarek.ziade | 2010-02-02 23:55:00 +0100 (Tue, 02 Feb 2010) | 1 line fixed a typo on distutils.sysconfig. thanks arfever ........
* Merged revisions 77759,77761 via svnmerge fromTarek Ziadé2010-01-291-1/+27
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77759 | tarek.ziade | 2010-01-26 22:21:54 +0100 (Tue, 26 Jan 2010) | 1 line reintroduced the names in Distutils for APIs that were relocated ........ r77761 | tarek.ziade | 2010-01-26 23:46:15 +0100 (Tue, 26 Jan 2010) | 1 line added local get_platform/set_platform APIs in distutils.sysconfig ........
* Merged revisions 77704,77752 via svnmerge fromTarek Ziadé2010-01-291-0/+214
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77704 | tarek.ziade | 2010-01-23 10:23:15 +0100 (Sat, 23 Jan 2010) | 1 line taking sysconfig out of distutils ........ r77752 | tarek.ziade | 2010-01-26 00:19:56 +0100 (Tue, 26 Jan 2010) | 1 line switched the call order so this call works without suffering from issue #7774 ........