In article <09843563-b0fd-451b-bf66-0fb720cec...@ja.net>,
 Adam Bishop <adam.bis...@ja.net> wrote:
> I'm trying to build python 3.3.2 from source packages provided by Red Hat 
> under mock.
> 
> The build itself works,but one specific test is failing:
>   
>    ======================================================================
>    FAIL: test_sysconfig_module 
>    (distutils.tests.test_sysconfig.SysconfigTestCase)
>    ----------------------------------------------------------------------
>    Traceback (most recent call last):
>      File 
>      "/builddir/build/BUILD/Python-3.3.2/Lib/distutils/tests/test_sysconfig.py
>      ", line 134, in test_sysconfig_module
>        self.assertEqual(global_sysconfig.get_config_var('CFLAGS'), 
>        sysconfig.get_config_var('CFLAGS'))
>    AssertionError: '-Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g 
>    -pipe -Wall -Wp,-D_FO [truncated]... != '-Wno-unused-result 
>    -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g -pipe -Wall -Wp,-D_FO 
>    [truncated]...
>    - -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include-O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv  -I/usr/include-O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv   -O1
>    ?                                                                          
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>                                                     
>    ---------------------------------------------------------------------------
>    ---------------------------------------------------------------------------
>    --------------------------------------------------
>    + -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include-O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv
>    
>    
>    ----------------------------------------------------------------------
>    Ran 189 tests in 1.778s
> 
> Obviously I could simply disable the test[1], but this requires patching the 
> source package, which I'd rather avoid because I don't fully understand what 
> case this test is trying to detect.
> 
> Is anyone able to indicate what the test is looking for and what might cause 
> it to fail? I don't see how the CFLAGS used in the build process could change 
> during the test run.

The test is to check that the two separate implementations of sysconfig 
in the standard library (don't ask why!), the newer sysconfig and the 
legacy distutils.sysconfig, return the same results for certain key 
configuration variables, like CFLAGS.  It's not the most critical test 
in the world.  The important point is that the values from the 
distutils.sysconfig version are what will be used during C extension 
module builds when you install third-party packages and, if necessary, 
most of them can be overridden, either in the package's setup.py or by 
setting environment variables.  Also, be aware that Python 3.3.2 is 
obsolete.

-- 
 Ned Deily,
 n...@acm.org

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to