Repository: qpid-proton Updated Branches: refs/heads/0.13.x 7c9731496 -> 0833623d5
PROTON-1202: python setup.py - only extract the files necessary for building the C library. (cherry picked from commit 6b05d0107c6c70152769c43a97a347df30b92572) Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/0833623d Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/0833623d Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/0833623d Branch: refs/heads/0.13.x Commit: 0833623d5aaacaf988c98d35dc34bb130a3d6039 Parents: 7c97314 Author: Ken Giusti <[email protected]> Authored: Tue May 17 13:36:23 2016 -0400 Committer: Ken Giusti <[email protected]> Committed: Thu May 19 09:03:23 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/0833623d/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: [email protected] For additional commands, e-mail: [email protected]
