[yt-svn] commit/yt: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 20 11:08:20 PDT 2016


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/9e83798c717e/
Changeset:   9e83798c717e
Branch:      yt
User:        xarthisius
Date:        2016-04-08 15:35:50+00:00
Summary:     Detect the legacy setuptools and distribute and die with a meaningful error message
Affected #:  1 file

diff -r c7470f10bdc0a7851036a0baa30d88f1d65e4c9c -r 9e83798c717ea251bfe53db27f5d1a6126e78686 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()
+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 = [
     "",


https://bitbucket.org/yt_analysis/yt/commits/f30511bc535d/
Changeset:   f30511bc535d
Branch:      yt
User:        xarthisius
Date:        2016-04-08 15:38:50+00:00
Summary:     Add missing error code
Affected #:  1 file

diff -r 9e83798c717ea251bfe53db27f5d1a6126e78686 -r f30511bc535de97180cfc4f87142de620a7b2f94 setup.py
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@
         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()
+        sys.exit(1)
 except pkg_resources.DistributionNotFound:
     pass  # yay!
 


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/72dcba2c/attachment.html>


More information about the yt-svn mailing list