build.cmds.CmdPythonpathOrig: Remove
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 3m35s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 3m39s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m32s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m29s
CI / Packaging test (push) Successful in 0s
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 3m35s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 3m39s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m32s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m29s
CI / Packaging test (push) Successful in 0s
Remove CmdPythonpathOrig. Its only purpose has ever been to document and try out how cmd_pythonpath_orig() had worked in an ancient application version, that purpose is now served.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c8fc6326cb
commit
f153a990a7
1 changed files with 0 additions and 38 deletions
|
|
@ -1,38 +0,0 @@
|
||||||
from __future__ import annotations
|
|
||||||
import os
|
|
||||||
|
|
||||||
from ...App import Scope
|
|
||||||
from .Cmd import Cmd, Parent
|
|
||||||
from typing import TYPE_CHECKING
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from argparse import ArgumentParser, Namespace
|
|
||||||
|
|
||||||
class CmdPythonpathOrig(Cmd): # export
|
|
||||||
|
|
||||||
def __init__(self, parent: Parent) -> None:
|
|
||||||
super().__init__(parent, 'pythonpath_orig', help = 'pythonpath')
|
|
||||||
|
|
||||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
|
||||||
super().add_arguments(parser)
|
|
||||||
parser.add_argument('module', nargs = '*', help = 'Modules')
|
|
||||||
|
|
||||||
async def _run(self, args: Namespace) -> None:
|
|
||||||
deps = self.app.get_project_refs(
|
|
||||||
args.module,
|
|
||||||
['pkg.requires.jw'],
|
|
||||||
['run', 'build'],
|
|
||||||
scope = Scope.Subtree,
|
|
||||||
add_self = True,
|
|
||||||
names_only = True,
|
|
||||||
)
|
|
||||||
r = ''
|
|
||||||
for m in deps:
|
|
||||||
pd = self.app.find_dir(m, pretty = False)
|
|
||||||
if pd is None:
|
|
||||||
continue
|
|
||||||
for subdir in ['src/python', 'tools/python']:
|
|
||||||
cand = pd + '/' + subdir
|
|
||||||
if os.path.isdir(cand):
|
|
||||||
r = r + ':' + cand
|
|
||||||
print(r[1:])
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue