1. Holger Krekel
  2. execnet
  3. Issues
Issue #13 on hold

Please unbundle apipkg

Thomas Moschny
created an issue

As far as I can see, execnet/apipkg.py in execnet 1.1 is identical to apipkg.py version 1.2. Would it be possible to unbundle it?

Background: Fedora has a policy that forbids bundling of libraries in its packages: http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries

The related Fedora bug against python-execnet is https://bugzilla.redhat.com/show_bug.cgi?id=790165

Comments (6)

  1. Holger Krekel repo owner

    execnet is meant as a zero-dependency library and it is therefore not currently possible to introduce a dependency, i am afraid. Note that execnet bootstraps itself across host boundaries -- a feature which would break if a dependency were introduced.

  2. Thomas Spura

    Would it be possible to accept something like over here: http://fedoraproject.org/wiki/User:Toshio/Unbundling_Python_Modules ?

    So for instance, one could move apipkg.py to _apipkg.py and add a apipkg.py which contains something like:

        from apipkg import *
    except ImportError:
        from _apipkg import *

    This would try to import the global library, if available or fall back to the bundled library. When it is packaged in Fedora the bundled library can easily be removed and execnet will still work as expected.

    This has worked great, when unbundling all python dependencies of ipython: https://github.com/ipython/ipython/issues/191

    Unfortunately, I cannot directly provide a pull request as my mercurial foo is not as good as my git foo. I will have a look though, if adding changes like the one mentioned above is an option... Is it? :)

  3. Log in to comment