This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Michael.Felt, vstinner
Date 2020-03-11.18:00:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583949632.83.0.475360814828.issue39936@roundup.psfhosted.org>
In-reply-to
Content
Another approach to patch _aix_support.py, replace:

try:
    import subprocess
    _have_subprocess = True
    _tmp_bd = 
    _bgt = get_config_var("BUILD_GNU_TYPE")
except ImportError:  # pragma: no cover
    _have_subprocess = False
    _tmp_bd = None
    _bgt = "powerpc-ibm-aix6.1.7.0"

with:

try:
    import subprocess
    _have_subprocess = True
    _tmp_bd = get_config_var("AIX_BUILDDATE")
    _bgt = get_config_var("BUILD_GNU_TYPE")
except ImportError:  # pragma: no cover
    import _bootsubprocess as subprocess
    _have_subprocess = True
    _tmp_bd = None
    _bgt = "powerpc-ibm-aix6.1.7.0"

Use _bootsubprocess when subprocess is not available. If this approach works, _have_subprocess=False code path can be removed.
History
Date User Action Args
2020-03-11 18:00:32vstinnersetrecipients: + vstinner, Michael.Felt
2020-03-11 18:00:32vstinnersetmessageid: <1583949632.83.0.475360814828.issue39936@roundup.psfhosted.org>
2020-03-11 18:00:32vstinnerlinkissue39936 messages
2020-03-11 18:00:32vstinnercreate