mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/nodeenv: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST nodeenv-1.10.0.gh.tar.gz 43934 BLAKE2B b6a8e4d6689a26936a5fc22bc0cf527abbc84e4c3eec0e635a51eb6317b391faabd98480d23eaddbe169ee20eeb668c769ba0eee0746dd5813ab0889eb9135ff SHA512 026edc60940586dad3aaf53f514c7ef4d638eb76e0066f97a0035f44de099b480d3d19510ca6ab9d5764a397a2e072a64ff9f88e5837512a0d43e41b46fdd342
|
||||
DIST nodeenv-1.9.1.gh.tar.gz 37158 BLAKE2B 73cdc56f7e8b55b8f0f6a4ab20fe91957f2ed40c6f58b9f17b13fbadc1f15305566018ffe7731dd930560f6d46ba67572bd4bb4bf4ba0419fd54760bac909dd0 SHA512 28fa814b57323dd996764d754f9c614c9dfd668c85ab21c23d0f9aeebb669ba3933f7b0b9ccbf0c808b5f15783eb3afdf3801f293952f3c4945729dee6ecb20b
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
From e3572d266d9b42affc1335e092e461709b29cdea Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Fri, 31 May 2024 17:59:30 +0200
|
||||
Subject: [PATCH] Replace additional use of `which(1)` with `shutil.which()`
|
||||
|
||||
Replace the remaining use of external `which(1)` tool with
|
||||
`shutil.which()` from the standard Python library, finally removing
|
||||
the dependency on a third party package.
|
||||
|
||||
This is a followup to 1024f4f64ceabd612b4df9a0b9dbe2691b2f5f9d.
|
||||
---
|
||||
nodeenv.py | 10 +++-------
|
||||
1 file changed, 3 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/nodeenv.py b/nodeenv.py
|
||||
index bbc19fb..a41cd5d 100644
|
||||
--- a/nodeenv.py
|
||||
+++ b/nodeenv.py
|
||||
@@ -930,14 +930,10 @@ def install_activate(env_dir, args):
|
||||
prompt = args.prompt or '(%s)' % os.path.basename(os.path.abspath(env_dir))
|
||||
|
||||
if args.node == "system":
|
||||
- env = os.environ.copy()
|
||||
- env.update({'PATH': remove_env_bin_from_path(env['PATH'], bin_dir)})
|
||||
+ path_var = remove_env_bin_from_path(os.environ['PATH'], bin_dir)
|
||||
for candidate in ("nodejs", "node"):
|
||||
- which_node_output, _ = subprocess.Popen(
|
||||
- ["which", candidate],
|
||||
- stdout=subprocess.PIPE, env=env).communicate()
|
||||
- shim_node = clear_output(which_node_output)
|
||||
- if shim_node:
|
||||
+ shim_node = shutil.which(candidate, path=path_var)
|
||||
+ if shim_node is not None:
|
||||
break
|
||||
assert shim_node, "Did not find nodejs or node system executable"
|
||||
|
||||
--
|
||||
2.45.1
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Node.js virtual environment builder"
|
||||
HOMEPAGE="
|
||||
https://github.com/ekalinin/nodeenv/
|
||||
https://pypi.org/project/nodeenv/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/ekalinin/nodeenv/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~hppa ~ppc ~ppc64 x86"
|
||||
|
||||
# requires network access
|
||||
RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/ekalinin/nodeenv/pull/355
|
||||
"${FILESDIR}/${PN}-1.9.0-which-hunt.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
Reference in New Issue
Block a user