You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2017/07/06 18:36:36 UTC

mesos git commit: Setup new directory for importable python libs in src/python.

Repository: mesos
Updated Branches:
  refs/heads/master ee7e7c793 -> 1b75c37cf


Setup new directory for importable python libs in src/python.

Part of MESOS-7310, this patch adds a new directory
(src/python/lib/mesos), which will be importable via 'import mesos'
from the cli.

Review: https://reviews.apache.org/r/58394/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1b75c37c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1b75c37c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1b75c37c

Branch: refs/heads/master
Commit: 1b75c37cff41f1d6955e1b202f73193b57ea636f
Parents: ee7e7c7
Author: Eric Chung <ci...@gmail.com>
Authored: Thu Jul 6 10:54:37 2017 -0700
Committer: Kevin Klues <kl...@gmail.com>
Committed: Thu Jul 6 11:34:33 2017 -0700

----------------------------------------------------------------------
 src/cli_new/bootstrap            | 1 +
 src/python/.gitignore            | 1 +
 src/python/lib/mesos/__init__.py | 0
 3 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1b75c37c/src/cli_new/bootstrap
----------------------------------------------------------------------
diff --git a/src/cli_new/bootstrap b/src/cli_new/bootstrap
index 6d62e9a..4193d3f 100755
--- a/src/cli_new/bootstrap
+++ b/src/cli_new/bootstrap
@@ -65,6 +65,7 @@ source ${VIRTUALENV_DIRECTORY}/bin/activate
 SITE_PACKAGES=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
 echo ${SITE_PACKAGES}
 echo "${CURRDIR}/lib" > ${SITE_PACKAGES}/_virtualenv_path_extensions.pth
+echo "${CURRDIR}/../python/lib" >> ${SITE_PACKAGES}/_virtualenv_path_extensions.pth
 pip install --upgrade pip
 pip install -r ${CURRDIR}/pip-requirements.txt
 deactivate

http://git-wip-us.apache.org/repos/asf/mesos/blob/1b75c37c/src/python/.gitignore
----------------------------------------------------------------------
diff --git a/src/python/.gitignore b/src/python/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/src/python/.gitignore
@@ -0,0 +1 @@
+*.pyc

http://git-wip-us.apache.org/repos/asf/mesos/blob/1b75c37c/src/python/lib/mesos/__init__.py
----------------------------------------------------------------------
diff --git a/src/python/lib/mesos/__init__.py b/src/python/lib/mesos/__init__.py
new file mode 100644
index 0000000..e69de29