Merge pull request #1972 from xonsh/on_anaconda

Fix ON_ANACONDA
This commit is contained in:
Konstantinos Tsakiltzidis 2016-11-25 00:45:38 +02:00 committed by GitHub
commit 13e7365bc2
2 changed files with 14 additions and 1 deletions

13
news/conda-forge.rst Normal file
View file

@ -0,0 +1,13 @@
**Added:** None
**Changed:** None
**Deprecated:** None
**Removed:** None
**Fixed:**
* Fix failure to detect an Anaconda python distribution if the python was install from the conda-forge channel.
**Security:** None

View file

@ -62,7 +62,7 @@ ON_BSD = LazyBool(lambda: ON_FREEBSD or ON_NETBSD,
PYTHON_VERSION_INFO = sys.version_info[:3]
""" Version of Python interpreter as three-value tuple. """
ON_ANACONDA = LazyBool(
lambda: any(s in sys.version for s in {'Anaconda', 'Continuum'}),
lambda: any(s in sys.version for s in {'Anaconda', 'Continuum', 'conda-forge'}),
globals(), 'ON_ANACONDA')
""" ``True`` if executed in an Anaconda instance, else ``False``. """
CAN_RESIZE_WINDOW = LazyBool(lambda: hasattr(signal, 'SIGWINCH'),