[issue8772] sysconfig: _get_default_scheme can be made public?

Sridhar Ratnakumar report at bugs.python.org
Thu May 20 18:23:40 CEST 2010


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

> removing 2.7 as a target -- it's too late

If contribute a patch to `get_current_scheme` and `get_current_user_scheme`, will be accepted as part of 2.7?

Roughly I would do something like this:

            scheme = os.name
            if usersite: # get_current_user_scheme
                if sys.platform == 'darwin':
                    scheme = 'osx_framework_user'
                else:
                    scheme += '_user'
            elif scheme == 'posix':
                scheme = 'posix_prefix'
            return scheme

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8772>
_______________________________________


More information about the Python-bugs-list mailing list