Skip to content

Fix sage.feature.package_systems for Python 3.6 #30740

@mkoeppe

Description

@mkoeppe

Follow-up from #30606.

As reported in https://groups.google.com/d/msg/sage-release/0MnZQYItCYc/yhXDenfMAAAJ:

line 376, in package_systems
     proc = run('sage-guess-package-system', shell=True, capture_output=True,
text=True, check=True)
   File "/usr/lib/python3.6/subprocess.py", line 423, in run
     with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
Makefile:190: recipe for target 'ptestlong' failed

So apparently my system python3 is used which is Python 3.6.9. The option
capture_output has been introduced in python 3.7.

Blocker because this ticket fixes the broken doctest machinery on major supported platforms including ubuntu-bionic

CC: @cheuberg @seblabbe

Component: python3

Author: Matthias Koeppe

Branch: c883d71

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/30740

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions