public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/gentoo-common/
@ 2023-01-29  9:34 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2023-01-29  9:34 UTC (permalink / raw
  To: gentoo-commits

commit:     a92e53d2923268caf60d6f0991fde4050ceb4539
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 25 12:29:39 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jan 29 09:34:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a92e53d2

dev-python/gentoo-common: Add a new package (v0) for common files

Add a new package to keep the common EXTERNALLY-MANAGED file shared
between implementations.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gentoo-common/gentoo-common-0.ebuild | 30 +++++++++++++++++++++++++
 dev-python/gentoo-common/metadata.xml           |  8 +++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-python/gentoo-common/gentoo-common-0.ebuild b/dev-python/gentoo-common/gentoo-common-0.ebuild
new file mode 100644
index 000000000000..58e23e58f72d
--- /dev/null
+++ b/dev-python/gentoo-common/gentoo-common-0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Common files shared by Python implementations in Gentoo"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+
+src_install() {
+	insinto /usr/lib/python
+	# https://peps.python.org/pep-0668/
+	newins - EXTERNALLY-MANAGED <<-EOF
+		[externally-managed]
+		Error=
+		 The system-wide Python installation in Gentoo should be maintained
+		 using the system package manager (e.g. emerge).
+
+		 If the package in question is not packaged for Gentoo, please
+		 consider installing it inside a virtual environment, e.g.:
+
+		   python -m venv /path/to/venv
+		   . /path/to/venv/bin/activate
+		   pip install mypackage
+	EOF
+}

diff --git a/dev-python/gentoo-common/metadata.xml b/dev-python/gentoo-common/metadata.xml
new file mode 100644
index 000000000000..7d421671d884
--- /dev/null
+++ b/dev-python/gentoo-common/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>python@gentoo.org</email>
+	</maintainer>
+	<stabilize-allarches/>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/gentoo-common/
@ 2023-01-31 17:25 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-01-31 17:25 UTC (permalink / raw
  To: gentoo-commits

commit:     c4f1c9917bbdce3a08fe5fe0e666315951fd9b64
Author:     Oskari Pirhonen <xxc3ncoredxx <AT> gmail <DOT> com>
AuthorDate: Mon Jan 30 02:35:52 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 31 17:25:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f1c991

dev-python/gentoo-common: add 1, drop 0

Add info on exiting and re-entering the venv.

Signed-off-by: Oskari Pirhonen <xxc3ncoredxx <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29336
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{gentoo-common-0.ebuild => gentoo-common-1.ebuild}             | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-python/gentoo-common/gentoo-common-0.ebuild b/dev-python/gentoo-common/gentoo-common-1.ebuild
similarity index 84%
rename from dev-python/gentoo-common/gentoo-common-0.ebuild
rename to dev-python/gentoo-common/gentoo-common-1.ebuild
index 58e23e58f72d..c09fd9e6d2b8 100644
--- a/dev-python/gentoo-common/gentoo-common-0.ebuild
+++ b/dev-python/gentoo-common/gentoo-common-1.ebuild
@@ -26,5 +26,12 @@ src_install() {
 		   python -m venv /path/to/venv
 		   . /path/to/venv/bin/activate
 		   pip install mypackage
+
+		 To exit the virtual environment, run:
+
+		   deactivate
+
+		 The virtual environment is not deleted, and can be re-entered by
+		 re-sourcing the activate file.
 	EOF
 }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/gentoo-common/
@ 2023-05-03  6:17 Fabian Groffen
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Groffen @ 2023-05-03  6:17 UTC (permalink / raw
  To: gentoo-commits

commit:     af360e896fdf8c35f15391e5143f1b911c3b4c1f
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed May  3 06:17:04 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed May  3 06:17:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af360e89

dev-python/gentoo-common: add Prefix keywords

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-python/gentoo-common/gentoo-common-1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/gentoo-common/gentoo-common-1.ebuild b/dev-python/gentoo-common/gentoo-common-1.ebuild
index c09fd9e6d2b8..2a8a5a6748cd 100644
--- a/dev-python/gentoo-common/gentoo-common-1.ebuild
+++ b/dev-python/gentoo-common/gentoo-common-1.ebuild
@@ -9,7 +9,7 @@ S=${WORKDIR}
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 
 src_install() {
 	insinto /usr/lib/python


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-03  6:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-03  6:17 [gentoo-commits] repo/gentoo:master commit in: dev-python/gentoo-common/ Fabian Groffen
  -- strict thread matches above, loose matches on Subject: below --
2023-01-31 17:25 Sam James
2023-01-29  9:34 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox