Staging
v0.8.1
https://github.com/python/cpython
Revision 8f2fae1e7d7142a280a23bb9428d0aaddbb518c5 authored by Gregory P. Smith on 04 February 2015, 09:04:31 UTC, committed by Gregory P. Smith on 04 February 2015, 09:04:31 UTC
interpreter under test is being run in an environment that requires the use of
environment variables such as PYTHONHOME in order to function at all.

Adds a test.script_helper.interpreter_requires_environment() function
to be used with @unittest.skipIf on stdlib test methods requiring this.
2 parent s a7559c0 + b9a3dd9
Raw File
Tip revision: 8f2fae1e7d7142a280a23bb9428d0aaddbb518c5 authored by Gregory P. Smith on 04 February 2015, 09:04:31 UTC
Skip some tests that require a subinterpreter launched with -E or -I when the
Tip revision: 8f2fae1
env.bat
@echo off
rem This script adds the latest available tools to the path for the current
rem command window. However, most builds of Python will ignore the version
rem of the tools on PATH and use PlatformToolset instead. Ideally, both sets of
rem tools should be the same version to avoid potential conflicts.
rem
rem To build Python with an earlier toolset, pass "/p:PlatformToolset=v100" (or
rem 'v110', 'v120' or 'v140') to the build script.

echo Build environments: x86, amd64, x86_amd64
echo.
set VSTOOLS=%VS140COMNTOOLS%
if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS%
if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS%
if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS%
call "%VSTOOLS%..\..\VC\vcvarsall.bat" %*
back to top