[yt-svn] commit/yt: ngoldbaum: Merged in xarthisius/yt (pull request #2123)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Apr 20 11:08:16 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/116dd39ae554/
Changeset: 116dd39ae554
Branch: yt
User: ngoldbaum
Date: 2016-04-20 18:08:05+00:00
Summary: Merged in xarthisius/yt (pull request #2123)
Detect the legacy setuptools and distribute and die with a meaningful error message.
Affected #: 1 file
diff -r 1fdde77a8abd4b1302150bcbae522edb067d63e1 -r 116dd39ae554e73c9b45718afee7c4f5cf593ff2 setup.py
--- a/setup.py
+++ b/setup.py
@@ -10,12 +10,36 @@
from setupext import \
check_for_openmp, check_for_pyembree, read_embree_location, \
get_mercurial_changeset_id, in_conda_env
+from distutils.version import LooseVersion
+import pkg_resources
+
if sys.version_info < (2, 7):
print("yt currently requires Python version 2.7")
print("certain features may fail unexpectedly and silently with older versions.")
sys.exit(1)
+try:
+ distribute_ver = \
+ LooseVersion(pkg_resources.get_distribution("distribute").version)
+ if distribute_ver < LooseVersion("0.7.3"):
+ print("Distribute is a legacy package obsoleted by setuptools.")
+ print("We strongly recommend that you just uninstall it.")
+ print("If for some reason you cannot do it, you'll need to upgrade it")
+ print("to latest version before proceeding:")
+ print(" pip install -U distribute")
+ sys.exit(1)
+except pkg_resources.DistributionNotFound:
+ pass # yay!
+
+setuptools_ver = \
+ LooseVersion(pkg_resources.get_distribution("setuptools").version)
+if setuptools_ver < LooseVersion("18.0"):
+ print("Your setuptools version is too old to properly handle cython extensions.")
+ print("Please update setuptools before proceeding:")
+ print(" pip install -U setuptools")
+ sys.exit(1)
+
MAPSERVER_FILES = []
MAPSERVER_DIRS = [
"",
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160420/c966e295/attachment-0001.htm>
More information about the yt-svn
mailing list