Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-1246

[python] Install egg-info directory

XMLWordPrintable

    • Yorba, Anza

      This is part of what I get if I do pip install python-qpid-proton

      /usr/lib64/python2.7/site-packages/python_qpid_proton-0.26.0-py2.7.egg-info/
      ├── dependency_links.txt
      ├── installed-files.txt
      ├── PKG-INFO
      ├── SOURCES.txt
      └── top_level.txt
      

      These files are missing in the python-qpid-proton RPM. That means that pip does not see the package installed from RPM and I cannot easily use the RPM with software depending on it I got through pip.

      Other RHEL/Fedora packages do install this, for example https://apps.fedoraproject.org/packages/python-requests

      Demonstration of problem

      $ yum install python-qpid-proton
      $ pip install --no-deps --upgrade cli-proton-python
      $ cli-proton-python-sender
      Traceback (most recent call last):
        File "/usr/bin/cli-proton-python-sender", line 5, in <module>
          from pkg_resources import load_entry_point
        File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
          working_set.require(__requires__)
        File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
          needed = self.resolve(parse_requirements(requirements))
        File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
          raise DistributionNotFound(req)
      pkg_resources.DistributionNotFound: python-qpid-proton
      

      Without --no-deps, pip would give me upstream proton, even though I have rpm already installed

      Workaround (not very good one) is to fake the egg-info. Version used in the name does not really matter (except maybe for dependency version resolution by pip).

      $ mkdir -p /usr/lib64/python2.7/site-packages/python_qpid_proton-0.26.0-py2.7.egg-info
      

      CC mtoth@redhat.com

            iboverma Irina Boverman
            jdanek@redhat.com Jiri Daněk
            Dominik Stuchlík Dominik Stuchlík (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: