On Tuesday, October 21, 2014 7:31:04 PM UTC-4, Feng Xiao wrote:
>
> Hi all,
>
> I just published Protocol Buffers v2.6.1:
> https://github.com/google/protobuf/releases/tag/2.6.1
>
 

> I'll soon upload it to Maven and pypi for Java and Python respectively.
>

2.6.1 won't install on Python 2.6 (can't import ez_setup):

$ /opt/Python-2.6.9/bin/virtualenv /tmp/pb26
New python executable in /tmp/pb26/bin/python
Installing 
Setuptools..............................................................................................................................................................................................................................done.
Installing 
Pip.....................................................................................................................................................................................................................................................................................................................................done.
$ /tmp/pb26/bin/pip install protobuf
Downloading/unpacking protobuf
  Downloading protobuf-2.6.1.tar.gz (80kB): 80kB downloaded
  Running setup.py egg_info for package protobuf
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pb26/build/protobuf/setup.py", line 203, in <module>
        "Protocol Buffers are Google's data interchange format.",
      File "/opt/Python-2.6.9/lib/python2.6/distutils/core.py", line 113, 
in setup
        _setup_distribution = dist = klass(attrs)
      File "/tmp/pb26/lib/python2.6/site-packages/setuptools/dist.py", line 
265, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/tmp/pb26/lib/python2.6/site-packages/setuptools/dist.py", line 
289, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/tmp/pb26/lib/python2.6/site-packages/pkg_resources.py", line 
618, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/tmp/pb26/lib/python2.6/site-packages/pkg_resources.py", line 
862, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/tmp/pb26/lib/python2.6/site-packages/pkg_resources.py", line 
874, in obtain
        return installer(requirement)
      File "/tmp/pb26/lib/python2.6/site-packages/setuptools/dist.py", line 
339, in fetch_build_egg
        return cmd.easy_install(req)
      File 
"/tmp/pb26/lib/python2.6/site-packages/setuptools/command/easy_install.py", 
line 623, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File 
"/tmp/pb26/lib/python2.6/site-packages/setuptools/command/easy_install.py", 
line 653, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File 
"/tmp/pb26/lib/python2.6/site-packages/setuptools/command/easy_install.py", 
line 849, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File 
"/tmp/pb26/lib/python2.6/site-packages/setuptools/command/easy_install.py", 
line 1130, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File 
"/tmp/pb26/lib/python2.6/site-packages/setuptools/command/easy_install.py", 
line 1115, in run_setup
        run_setup(setup_script, args)
      File "/tmp/pb26/lib/python2.6/site-packages/setuptools/sandbox.py", 
line 69, in run_setup
        lambda: execfile(
      File "/tmp/pb26/lib/python2.6/site-packages/setuptools/sandbox.py", 
line 120, in run
        return func()
      File "/tmp/pb26/lib/python2.6/site-packages/setuptools/sandbox.py", 
line 71, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "setup.py", line 18, in <module>
        sys.stderr.write(
    ImportError: No module named ez_setup

Two issues:

- 'ez_setup.py' is present in the source tree, but not in the release 
tarball:  it needs a 'MANIFEST.in'.

- 'setup.py' should try importing 'setuptools' directly first, and only 
falling back to 'ez_setup' on ImportError.


Tres.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to