ruyi 0.52.0-1
legitimate package manager source
“RuyiSDK Package Manager”
Extension-swap rename then executereplace() call swapping extension to .exe
SHA-256c41d3aa5907bf304ad7938a95168e3c8862caa6a9f89fe9264863d9903bc877e
MaleculeH₂(Cm₃Po)Md(Bk)
Evidence
1#!/usr/bin/python
2# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
3
4
5"""Run a construct based comparison test.
6
7This executes a program with and without snippet of code and
8stores the numbers about it, extracted with Valgrind for use
9in comparisons.
10
11"""
12
13import os
14import sys
15
16from nuitka.__past__ import md5
17from nuitka.options.CommandLineOptionsTools import makeOptionsParser
18from nuitka.tools.testing.Common import (
19 check_output,
20 getPythonSysPath,
21 getPythonVersionString,
22 getTempDir,
23 my_print,
24 setup,
25)
26from nuitka.tools.testing.Constructs import generateConstructCases
27from nuitka.tools.testing.Valgrind import runValgrind
28from nuitka.utils.Diffs import getHtmlDiffTable
29from nuitka.utils.Execution import check_call
30from nuitka.utils.FileOperations import (
31 copyFile,
32 getFileContentByLine,
33 getFileContents,
34 putTextFileContents,
35)
36
37
38def _setPythonPath(case_name):
39 if "Numpy" in case_name:
40 os.environ["PYTHONPATH"] = getPythonSysPath()
41
42
43def main():
44 # Complex stuff, not broken down yet
45 # pylint: disable=too-many-branches,too-many-loca …
49:10… r.add_option(
50 "--nuitka", action="store", dest="nuitka", default=os.getenv("NUITKA", "")
51 )
52
53 parser.add_option(
54 "--cpython",
55 action="store",
56 dest="cpython",
57 default=os.getenv("PYTHON", sys.executable),
58 )
59
60 parser.add_option("--code-diff", action="store", dest="diff_filename", default="")
61
62 parser.add_option("--copy-source-to", action="store", dest="target_dir", default="")
63
64 …
64:31… parser.parse_args()
65
66 if len(positional_args) != 1:
67 sys.exit("Error, need to give test case file name as positional argument.")
68
69 test_case = positional_args[0]
⋯5 lines
⋯4 lines
92 _setPythonPath(case_name)
93
94 assert os.path.exists(test_case), (test_case, os.getcwd())
95
96 my_print("PYTHON='%s'" % getPythonVersionString())
97 my_print("PYTHON_BINARY='%s'" % os.environ["PYTHON"])
98 my_print("TEST_CASE_HASH='%s'" % md5(getFileContents(test_case, "rb")).hexdigest())
99
100 if options.target_dir:
⋯8 lines
113:46… ource)
114 putTextFileContents(test_case_2, case_2_source)
115
116 os.environ["PYTHONHASHSEED"] = "0"
117
118 if nuitka:
119 nuitka_id = check_output(
120 "cd %s; git rev-parse HEAD" % os.path.dirname(nuitka), s …
No evidence locations were recorded for this file. Raw result