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 Marc.Abramowitz
Recipients Marc.Abramowitz, barry, doko
Date 2013-11-11.18:27:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384194446.04.0.777298300112.issue19555@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Barry, for tracking down that this is intentional.

I wonder how one gets this value in Python code now? For example, the reason I stumbled upon this in the first place is that there is some code in PyCrypto (https://github.com/dlitz/pycrypto/blob/master/lib/Crypto/SelfTest/PublicKey/test_RSA.py#L464) that uses `get_config_var("SO")` thusly:

```
    except ImportError:
        from distutils.sysconfig import get_config_var
        import inspect
        _fm_path = os.path.normpath(os.path.dirname(os.path.abspath(
            inspect.getfile(inspect.currentframe())))
            +"/../../PublicKey/_fastmath"+get_config_var("SO"))
        if os.path.exists(_fm_path):
            raise ImportError("While the _fastmath module exists, importing "+
                "it failed. This may point to the gmp or mpir shared library "+
                "not being in the path. _fastmath was found at "+_fm_path)
```

What would be the way to express this now in Python >= 3.4?
History
Date User Action Args
2013-11-11 18:27:26Marc.Abramowitzsetrecipients: + Marc.Abramowitz, barry, doko
2013-11-11 18:27:26Marc.Abramowitzsetmessageid: <1384194446.04.0.777298300112.issue19555@psf.upfronthosting.co.za>
2013-11-11 18:27:26Marc.Abramowitzlinkissue19555 messages
2013-11-11 18:27:25Marc.Abramowitzcreate