[Distutils] setuptools 8 changes are great, but ...
Marius Gedminas
marius at pov.lt
Wed Dec 17 11:36:52 CET 2014
On Wed, Dec 17, 2014 at 10:09:56AM +0000, Chris Withers wrote:
> FWIW, I've also been seeing failures in all of my buildout-based
> library testing Jenkins jobs:
>
> This one only on Windows and Python 2.7 only, NOT Python 2.6:
>
> C:\Jenkins\workspace\checker-buildout\aeb5917b>C:\Python27\python.exe
> bootstrap.py
...
> ImportError: No module named email
This sounds like https://github.com/buildout/buildout/issues/217
> ...which I see on a couple of jobs, also this, on Python 3, Linux:
>
> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-8.0.1.zip
> Extracting in /tmp/tmp71bne9
> Now working in /tmp/tmp71bne9/setuptools-8.0.1
> Building a Setuptools egg in /tmp/tmpdgs_c0
> /tmp/tmpdgs_c0/setuptools-8.0.1-py3.3.egg
> Creating directory
> '/var/lib/jenkins/slave/workspace/mush-buildout/0321cca2/bin'.
> Creating directory
> '/var/lib/jenkins/slave/workspace/mush-buildout/0321cca2/parts'.
> Creating directory '/var/lib/jenkins/slave/workspace/mush-buildout/0321cca2/develop-eggs'.
> Generated script '/var/lib/jenkins/slave/workspace/mush-buildout/0321cca2/bin/buildout'.
> /tmp/tmpdgs_c0/setuptools-8.0.1-py3.3.egg/pkg_resources.py:130:
> RuntimeWarning: You have iterated over the result of
> pkg_resources.parse_version. This is a legacy behavior which is
> inconsistent with the new version class introduced in setuptools
> 8.0. That class should be used directly instead of attempting to
> iterate over the result.
> /var/lib/jenkins/.buildout/eggs/setuptools-8.0.1-py3.3.egg/pkg_resources.py:130:
> RuntimeWarning: You have iterated over the result of
> pkg_resources.parse_version. This is a legacy behavior which is
> inconsistent with the new version class introduced in setuptools
> 8.0. That class should be used directly instead of attempting to
> iterate over the result.
> While:
> Installing.
> Checking for upgrades.
> Getting distribution for 'zc.buildout>=2.2.5'.
>
> An internal error occurred due to a bug in either zc.buildout or in a
> recipe being used:
> Traceback (most recent call last):
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/buildout.py",
> line 1946, in main
> getattr(buildout, command)(args)
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/buildout.py",
> line 475, in install
> self._maybe_upgrade()
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/buildout.py",
> line 910, in _maybe_upgrade
> allow_hosts = self._allow_hosts
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/easy_install.py",
> line 844, in install
> return installer.install(specs, working_set)
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/easy_install.py",
> line 631, in install
> for_buildout_run=for_buildout_run):
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/easy_install.py",
> line 473, in _get_dist
> dist, avail = self._satisfied(requirement)
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/easy_install.py",
> line 268, in _satisfied
> best_available = self._obtain(req, source)
> File "/var/lib/jenkins/.buildout/eggs/zc.buildout-2.2.5-py3.3.egg/zc/buildout/easy_install.py",
> line 427, in _obtain
> if distv > bestv:
> TypeError: unorderable types: SetuptoolsVersion() > tuple()
Haven't seen that one before.
> ...and this one on Windows Python 3:
>
> C:\Jenkins\workspace\mush-buildout\a1017537>C:\Python33\python.exe
> bootstrap.py
> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-8.0.1.zip
> Extracting in c:\users\jenkins\appdata\local\temp\tmpkij7_u
> Now working in
> c:\users\jenkins\appdata\local\temp\tmpkij7_u\setuptools-8.0.1
> Building a Setuptools egg in c:\users\jenkins\appdata\local\temp\tmpgy_a7q
> c:\users\jenkins\appdata\local\temp\tmpgy_a7q\setuptools-8.0.1-py3.3.egg
> Traceback (most recent call last):
> File "<string>", line 138, in use_setuptools
> ImportError: No module named 'pkg_resources'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "bootstrap.py", line 92, in <module>
> ez['use_setuptools'](**setup_args)
> File "<string>", line 140, in use_setuptools
> File "<string>", line 128, in _do_download
> File "c:\users\jenkins\appdata\local\temp\tmpgy_a7q\setuptools-8.0.1-py3.3.egg\setuptools\__init__.py",
> line 5, in <module>
> File "C:\Python33\lib\distutils\core.py", line 17, in <module>
> from distutils.dist import Distribution
> File "C:\Python33\lib\distutils\dist.py", line 15, in <module>
> from distutils.fancy_getopt import FancyGetopt, translate_longopt
> File "C:\Python33\lib\distutils\fancy_getopt.py", line 12, in <module>
> import getopt
> ImportError: No module named 'getopt'
Might be https://github.com/buildout/buildout/issues/217 again?
> Links to these builds are here, if you're familiar with Jenkins:
>
> http://jenkins.simplistix.co.uk/job/mush-buildout/
> http://jenkins.simplistix.co.uk/job/checker-buildout/
Marius Gedminas
--
To express oneself
In seventeen syllables
Is very diffic
-- John Cooper Clark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20141217/1957f9b8/attachment.sig>
More information about the Distutils-SIG
mailing list