[issue8772] sysconfig: _get_default_scheme can be made public?

2021-06-15 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-11-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Library (Lib) -Distutils ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8772 ___ ___

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-09-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wonder if the scheme names could be made more consistent, removing the need for a function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8772

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-08-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8772 ___ ___ Python-bugs-list

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-20 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Its a good idea to have that API. Now for the subscheme, def get_current_scheme(subscheme=oneof('default', 'home', 'user')): This doesn't work because the installed Python has already chosen a scheme between default or home. So I'd

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On 2010-05-20, at 2:45 AM, Tarek Ziadé wrote: So I'd rather have two APIs answering to that: - get_current_scheme() : what's the default scheme for this python installation ? - get_current_user_scheme() : what's the default

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@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

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Here it is: def get_current_scheme(): scheme = os.name if scheme == 'posix': scheme = 'posix_prefix' return scheme def get_current_user_scheme():

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-20 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: No sorry, no API change for 2.7 at this point. We are in beta stage. Now for the implementation, it's going to be a little more complex. We need to look at variables like PYTHONFRAMEWORK for instance. --

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: Currently there is no way to get the default scheme for *current* platform other than plainly *assuming* that that is os.name unless it is posix, in which case it becomes posix_prefix. PyPM needs to know this. But I am slightly

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Ideally I like to have a function like this: def get_current_scheme(usersite=False): scheme = os.name if usersite: scheme += '_user' elif scheme ==