Repository: qpid-proton
Updated Branches:
  refs/heads/master 631255c6c -> 6b05d0107


PROTON-1202: python setup.py - only extract the files necessary for
building the C library.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/6b05d010
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/6b05d010
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/6b05d010

Branch: refs/heads/master
Commit: 6b05d0107c6c70152769c43a97a347df30b92572
Parents: 631255c
Author: Ken Giusti <kgiu...@apache.org>
Authored: Tue May 17 13:36:23 2016 -0400
Committer: Ken Giusti <kgiu...@apache.org>
Committed: Tue May 17 15:58:55 2016 -0400

----------------------------------------------------------------------
 proton-c/bindings/python/setuputils/bundle.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/6b05d010/proton-c/bindings/python/setuputils/bundle.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/setuputils/bundle.py 
b/proton-c/bindings/python/setuputils/bundle.py
index 0e31e55..81914b1 100644
--- a/proton-c/bindings/python/setuputils/bundle.py
+++ b/proton-c/bindings/python/setuputils/bundle.py
@@ -69,6 +69,14 @@ def fetch_archive(savedir, url, fname):
 
 def fetch_libqpid_proton(savedir):
     """Download qpid-proton to `savedir`."""
+    def _c_only(members):
+        # just extract the files necessary to build the shared library
+        for tarinfo in members:
+            npath = os.path.normpath(tarinfo.name)
+            if ("proton-c/src" in npath or
+                "proton-c/include" in npath or
+                "proton-c/mllib" in npath):
+                yield tarinfo
     dest = os.path.join(savedir, 'qpid-proton')
     if os.path.exists(dest):
         log.info("already have %s" % dest)
@@ -79,6 +87,6 @@ def fetch_libqpid_proton(savedir):
     if member == '.':
         member = tf.getmembers()[1].path
     with_version = os.path.join(savedir, member)
-    tf.extractall(savedir)
+    tf.extractall(savedir, members=_c_only(tf))
     tf.close()
     shutil.move(with_version, dest)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to