From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752745AbcFFQcx (ORCPT ); Mon, 6 Jun 2016 12:32:53 -0400 Received: from smtp3-1.goneo.de ([85.220.129.38]:36356 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbcFFQcv (ORCPT ); Mon, 6 Jun 2016 12:32:51 -0400 X-Spam-Flag: NO X-Spam-Score: -2.793 From: Markus Heiser To: corbet@lwn.net Cc: jani.nikula@intel.com, daniel.vetter@ffwll.ch, grant.likely@secretlab.ca, mchehab@osg.samsung.com, keithp@keithp.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, hverkuil@xs4all.nl, "Heiser, Markus" Subject: [PATCH 1/7] python: add scripts/site-packages Date: Mon, 6 Jun 2016 18:32:19 +0200 Message-Id: <1465230745-31358-2-git-send-email-markus.heiser@darmarIT.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465230745-31358-1-git-send-email-markus.heiser@darmarIT.de> References: <1465230745-31358-1-git-send-email-markus.heiser@darmarIT.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Heiser, Markus" 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 --- 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