Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cffi cffi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • PyPyPyPy
  • cfficffi
  • Issues
  • #205
Closed
Open
Issue created Jun 01, 2015 by Bitbucket Importer@bitbucket_importerMaintainer

testing.cffi1.test_zdist.TestDist.{test_setuptools_abi_1,test_setuptools_abi_2,test_setuptools_api_1,test_setuptools_api_2}() fail with CPython 2.6

Created originally on Bitbucket by arfrever (Arfrever Frehtes Taifersar Arahesis)

testing.cffi1.test_zdist.TestDist.test_setuptools_abi_1(), testing.cffi1.test_zdist.TestDist.test_setuptools_abi_2(), testing.cffi1.test_zdist.TestDist.test_setuptools_api_1() and testing.cffi1.test_zdist.TestDist.test_setuptools_api_2() fail with CPython 2.6. This problem does not occur with CPython 2.7, 3.2, 3.3, 3.4. This problem occurs since cffi 1.1.0 and still occurs in cffi trunk.

$ PYTHONPATH="$(pwd)/build/lib.linux-x86_64-2.6" py.test-2.6 testing/cffi1/test_zdist.py
============================= test session starts ==============================
platform linux2 -- Python 2.6.9 -- py-1.4.28 -- pytest-2.7.1
rootdir: /tmp/cffi, inifile: 
collected 21 items

testing/cffi1/test_zdist.py .................FFFF

=================================== FAILURES ===================================
________________________ TestDist.test_setuptools_abi_1 ________________________

self = <testing.cffi1.test_zdist.TestDist object at 0x21f74d0>

    @chdir_to_tmp
    def test_setuptools_abi_1(self):
        self._make_setuptools_abi()
>       self.run(["setup.py", "build"])

/tmp/cffi/testing/cffi1/test_zdist.py:284: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/cffi/testing/cffi1/test_zdist.py:38: in run
    subprocess.check_call([self.executable] + args, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/usr/bin/python2.6', 'setup.py', 'build'],)
kwargs = {'env': {'ANT_HOME': '/usr/share/ant', 'COLORFGBG': '0;15', 'CONFIG_PROTECT': '/usr/share/gnupg/qualified.txt /var/lib...f/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild /etc/splash', ...}}
retcode = 1, cmd = ['/usr/bin/python2.6', 'setup.py', 'build']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the Popen constructor.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        cmd = kwargs.get("args")
        if cmd is None:
            cmd = popenargs[0]
        if retcode:
>           raise CalledProcessError(retcode, cmd)
E           CalledProcessError: Command '['/usr/bin/python2.6', 'setup.py', 'build']' returned non-zero exit status 1

/usr/lib64/python2.6/subprocess.py:488: CalledProcessError
----------------------------- Captured stdout call -----------------------------
compiling '_configtest.c':
__thread int some_threadlocal_variable_42;
running egg_info
writing requirements to cffi.egg-info/requires.txt
writing cffi.egg-info/PKG-INFO
writing top-level names to cffi.egg-info/top_level.txt
writing dependency_links to cffi.egg-info/dependency_links.txt
writing entry points to cffi.egg-info/entry_points.txt
reading manifest file 'cffi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cffi.egg-info/SOURCES.txt'
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    cffi_modules=["src0/pack2/_build.py:ffi"])
  File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 272, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib64/python2.6/distutils/dist.py", line 270, in __init__
    self.finalize_options()
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 327, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 152, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 46, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 21, in execfile
    code = compile(f.read(), filename, 'exec')
  File "src0/pack2/_build.py", line 5
    
IndentationError: unindent does not match any outer indentation level
________________________ TestDist.test_setuptools_abi_2 ________________________

self = <testing.cffi1.test_zdist.TestDist object at 0x235a8d0>

    @chdir_to_tmp
    def test_setuptools_abi_2(self):
        self._make_setuptools_abi()
>       self.run(["setup.py", "build_ext", "-i"])

/tmp/cffi/testing/cffi1/test_zdist.py:293: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/cffi/testing/cffi1/test_zdist.py:38: in run
    subprocess.check_call([self.executable] + args, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/usr/bin/python2.6', 'setup.py', 'build_ext', '-i'],)
kwargs = {'env': {'ANT_HOME': '/usr/share/ant', 'COLORFGBG': '0;15', 'CONFIG_PROTECT': '/usr/share/gnupg/qualified.txt /var/lib...f/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild /etc/splash', ...}}
retcode = 1, cmd = ['/usr/bin/python2.6', 'setup.py', 'build_ext', '-i']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the Popen constructor.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        cmd = kwargs.get("args")
        if cmd is None:
            cmd = popenargs[0]
        if retcode:
>           raise CalledProcessError(retcode, cmd)
E           CalledProcessError: Command '['/usr/bin/python2.6', 'setup.py', 'build_ext', '-i']' returned non-zero exit status 1

/usr/lib64/python2.6/subprocess.py:488: CalledProcessError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    cffi_modules=["src0/pack2/_build.py:ffi"])
  File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 272, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib64/python2.6/distutils/dist.py", line 270, in __init__
    self.finalize_options()
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 327, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 152, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 46, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 21, in execfile
    code = compile(f.read(), filename, 'exec')
  File "src0/pack2/_build.py", line 5
    
IndentationError: unindent does not match any outer indentation level
________________________ TestDist.test_setuptools_api_1 ________________________

self = <testing.cffi1.test_zdist.TestDist object at 0x235add0>

    @chdir_to_tmp
    def test_setuptools_api_1(self):
        self._make_setuptools_api()
>       self.run(["setup.py", "build"])

/tmp/cffi/testing/cffi1/test_zdist.py:324: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/cffi/testing/cffi1/test_zdist.py:38: in run
    subprocess.check_call([self.executable] + args, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/usr/bin/python2.6', 'setup.py', 'build'],)
kwargs = {'env': {'ANT_HOME': '/usr/share/ant', 'COLORFGBG': '0;15', 'CONFIG_PROTECT': '/usr/share/gnupg/qualified.txt /var/lib...f/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild /etc/splash', ...}}
retcode = 1, cmd = ['/usr/bin/python2.6', 'setup.py', 'build']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the Popen constructor.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        cmd = kwargs.get("args")
        if cmd is None:
            cmd = popenargs[0]
        if retcode:
>           raise CalledProcessError(retcode, cmd)
E           CalledProcessError: Command '['/usr/bin/python2.6', 'setup.py', 'build']' returned non-zero exit status 1

/usr/lib64/python2.6/subprocess.py:488: CalledProcessError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    cffi_modules=["src1/pack3/_build.py:ffi"])
  File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 272, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib64/python2.6/distutils/dist.py", line 270, in __init__
    self.finalize_options()
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 327, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 152, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 46, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 21, in execfile
    code = compile(f.read(), filename, 'exec')
  File "src1/pack3/_build.py", line 5
    
IndentationError: unindent does not match any outer indentation level
________________________ TestDist.test_setuptools_api_2 ________________________

self = <testing.cffi1.test_zdist.TestDist object at 0x235ab10>

    @chdir_to_tmp
    def test_setuptools_api_2(self):
        self._make_setuptools_api()
>       self.run(["setup.py", "build_ext", "-i"])

/tmp/cffi/testing/cffi1/test_zdist.py:333: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/cffi/testing/cffi1/test_zdist.py:38: in run
    subprocess.check_call([self.executable] + args, env=env)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/usr/bin/python2.6', 'setup.py', 'build_ext', '-i'],)
kwargs = {'env': {'ANT_HOME': '/usr/share/ant', 'COLORFGBG': '0;15', 'CONFIG_PROTECT': '/usr/share/gnupg/qualified.txt /var/lib...f/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild /etc/splash', ...}}
retcode = 1, cmd = ['/usr/bin/python2.6', 'setup.py', 'build_ext', '-i']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the Popen constructor.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        cmd = kwargs.get("args")
        if cmd is None:
            cmd = popenargs[0]
        if retcode:
>           raise CalledProcessError(retcode, cmd)
E           CalledProcessError: Command '['/usr/bin/python2.6', 'setup.py', 'build_ext', '-i']' returned non-zero exit status 1

/usr/lib64/python2.6/subprocess.py:488: CalledProcessError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    cffi_modules=["src1/pack3/_build.py:ffi"])
  File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 272, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib64/python2.6/distutils/dist.py", line 270, in __init__
    self.finalize_options()
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 327, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 152, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 46, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/tmp/cffi/cffi/setuptools_ext.py", line 21, in execfile
    code = compile(f.read(), filename, 'exec')
  File "src1/pack3/_build.py", line 5
    
IndentationError: unindent does not match any outer indentation level
===================== 4 failed, 17 passed in 5.94 seconds ======================
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking