[PATCH 1/7] python: add scripts/site-packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Heiser, Markus" <markus.heiser@xxxxxxxxxxx>

With folder scripts/site-packages a minimal python infrastructure is
provided.

The ``site-python`` folder gather python extensions (packages and
modules).  With a PYTHONPATH [1] or a sys.path [2] entry pointing to
this folder, these extensions can be imported from any python script. If
you are unfamiliar with python packages consult [3] at least.

[1] https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
[2] https://docs.python.org/3/install/#inst-search-path
[3] https://docs.python.org/3/tutorial/modules.html#packages

Signed-off-by: Markus Heiser <markus.heiser@xxxxxxxxxxx>
---
 scripts/site-python/.gitignore |  1 +
 scripts/site-python/README     | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 scripts/site-python/.gitignore
 create mode 100644 scripts/site-python/README

diff --git a/scripts/site-python/.gitignore b/scripts/site-python/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/scripts/site-python/.gitignore
@@ -0,0 +1 @@
+*.pyc
diff --git a/scripts/site-python/README b/scripts/site-python/README
new file mode 100644
index 0000000..04ebf7b
--- /dev/null
+++ b/scripts/site-python/README
@@ -0,0 +1,14 @@
+.. -*- coding: utf-8; mode: rst -*-
+
+===========
+site-python
+===========
+
+The ``site-python`` folder gather python extensions (packages and modules).
+With a PYTHONPATH [1] or a sys.path [2] entry pointing to this folder, these
+extensions can be imported from any python script. If you are unfamiliar with
+python packages consult [3] at least.
+
+[1] https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
+[2] https://docs.python.org/3/install/#inst-search-path
+[3] https://docs.python.org/3/tutorial/modules.html#packages
-- 
v4.7-rc-2

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux