All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hugues Kamba <Hugues.Kamba@arm.com>
To: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Cc: Diego Russo <Diego.Russo@arm.com>,
	Jeremy Johnson <Jeremy.Johnson@arm.com>,
	"aehs29@gmail.com" <aehs29@gmail.com>
Subject: PATCH: Fixing python3-pyvenv and adding python3-venv
Date: Mon, 22 Oct 2018 10:48:01 +0000	[thread overview]
Message-ID: <VI1PR08MB36317EE05BE84D857C630F2398F40@VI1PR08MB3631.eurprd08.prod.outlook.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 865 bytes --]

Dear All,


As it currently is, python3-pyvenv is broken because it is missing the venv module run-time dependency.


The patch I am submitting is to add the venv module dependency to python3-pyvenv.

The dependency has been added using the newly added venv package (python3-venv).

The python3-venv package has been added for future proofing since pyvenv has been deprecated in Python 3.6 and creation of virtual environment is done using the venv module directly (i.e python3 -m venv my_venv).


Regards,


Hugues Kamba

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

[-- Attachment #1.2: Type: text/html, Size: 2495 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix_python3_builtin_virtual_environment_tool.patch --]
[-- Type: text/x-patch; name="fix_python3_builtin_virtual_environment_tool.patch", Size: 2039 bytes --]

From b1e61636a2324e6e4b0bfc6e9a8c0fd78fdba40a Mon Sep 17 00:00:00 2001
From: Hugues Kamba <hugues.kamba@arm.com>
Date: Mon, 22 Oct 2018 11:40:59 +0100
Subject: [PATCH] Create python3-venv package for virtual environments creation

* Add the venv module as a self-contained package since pyvenv as been
  deprecated in Python 3.6.
* Fix the python3-pyvenv package by adding venv as a run-time dependency.
---
 .../python/python3/python3-manifest.json           | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json
index f922561..5cf6412 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -915,6 +915,17 @@
             "${libdir}/python${PYTHON_MAJMIN}/__pycache__/pydoc.*.pyc"
         ]
     },
+    "pyvenv": {
+        "summary": "Allow you to create virtual environments so we can isolate our project dependencies. Deprecated in Python 3.6",
+        "rdepends": [
+            "core",
+            "venv"
+        ],
+        "files": [
+            "${bindir}/pyvenv*"
+        ],
+        "cached": []
+    },
     "resource": {
         "summary": "Python resource control interface",
         "rdepends": [
@@ -1107,6 +1118,21 @@
             "${libdir}/python${PYTHON_MAJMIN}/__pycache__/getpass.*.pyc"
         ]
     },
+    "venv": {
+        "summary": "Provides support for creating lightweight virtual environments with their own site directories, optionally isolated from system site directories",
+        "rdepends": [
+            "compression",
+            "core",
+            "logging",
+            "shell",
+            "stringold",
+            "unixadmin"
+        ],
+        "files": [
+            "${libdir}/python${PYTHON_MAJMIN}/venv"
+        ],
+        "cached": []
+    },
     "xml": {
         "summary": "Python basic XML support",
         "rdepends": [
-- 
2.7.4


             reply	other threads:[~2018-10-22 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22 10:48 Hugues Kamba [this message]
2018-10-22 22:17 ` PATCH: Fixing python3-pyvenv and adding python3-venv Alejandro Hernandez
2018-10-22 22:47   ` Hugues Kamba
2018-10-22 23:12     ` Hugues Kamba
2018-10-23 21:26       ` Alejandro Hernandez
2018-10-23 21:51         ` Hugues Kamba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR08MB36317EE05BE84D857C630F2398F40@VI1PR08MB3631.eurprd08.prod.outlook.com \
    --to=hugues.kamba@arm.com \
    --cc=Diego.Russo@arm.com \
    --cc=Jeremy.Johnson@arm.com \
    --cc=aehs29@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.