[issue23746] sysconfg.is_python_build() is buggy

2016-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf51f1f3569a by Vinay Sajip in branch '3.5': Issue #23746: Clarified is_python_build() documentation. https://hg.python.org/cpython/rev/bf51f1f3569a New changeset a0a7c5b1af97 by Vinay Sajip in branch 'default': Closes #23746: merged update from 3.5

[issue23746] sysconfg.is_python_build() is buggy

2016-08-25 Thread Vinay Sajip
Vinay Sajip added the comment: It's not *only* used in test - it's also used in third party libraries. For example, it's used in distlib (which is vendored by pip) to determine whether it's being run from a source build. -- nosy: +vinay.sajip ___ Py

[issue23746] sysconfg.is_python_build() is buggy

2016-08-07 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23746] sysconfg.is_python_build() is buggy

2016-07-31 Thread Berker Peksag
Changes by Berker Peksag : -- components: -Library (Lib) keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ __

[issue23746] sysconfg.is_python_build() is buggy

2015-03-29 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23746] sysconfg.is_python_build() is buggy

2015-03-29 Thread Anand B Pillai
Changes by Anand B Pillai : -- assignee: -> docs@python components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailin

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: > Lib/test/test_asdl_parser.py:12:if not sysconfig.is_python_build(): As I guessed - it is used internally by unit tests and possibly has no other significan audience. It is best to document this clearly. -- ___ Py

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread STINNER Victor
STINNER Victor added the comment: > On second thoughts, why have such a function if it works correctly only when > executed from source Cpython folder using source CPython executable and not > otherwise ? It's useful to know such information. Python behaves a little bit differently when run f

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: On second thoughts, why have such a function if it works correctly only when executed from source Cpython folder using source CPython executable and not otherwise ? Cuz if I am calling it like that I already KNOW that I am in such an environment. Possibly t

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: Thanks. From current documentation it isn't clear. Agree to make this a doc bug then. It should also be made clear this would work only for the executable built in the source directory. As in, (Running from the source folder using source Python executable).

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread STINNER Victor
STINNER Victor added the comment: IMO it's more a documentation issue than a bug. sysconfig.is_python_build() returns True when Python is run from its source code directory. For example, I compiled Python in ~/prog/python/default. ~/prog/python/default/python returns True. I installed python

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Changes by Anand B Pillai : Added file: http://bugs.python.org/file38649/sysconfig_test.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
New submission from Anand B Pillai: On Python 3.5.0a1+ built from source, >>> import sysconfig >>> sysconfig.is_python_build() False >>> sysconfig.is_python_build(True) False >>> sysconfig._PROJECT_BASE '/opt/bin' >>> import sys >>> sys._home >>> The problem is, when sys._home is None, this fun