portable-python 1.8.7__tar.gz → 1.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {portable-python-1.8.7/src/portable_python.egg-info → portable-python-1.9.0}/PKG-INFO +1 -1
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/config.py +0 -1
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/inspector.py +6 -5
- {portable-python-1.8.7 → portable-python-1.9.0/src/portable_python.egg-info}/PKG-INFO +1 -1
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_inspector.py +4 -2
- {portable-python-1.8.7 → portable-python-1.9.0}/DEVELOP.md +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/LICENSE +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/MANIFEST.in +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/README.rst +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/SECURITY.md +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/pyproject.toml +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/requirements.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/setup.cfg +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/setup.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/__init__.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/__main__.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/cli.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/cpython.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/__init__.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/_inspect.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/tkinter.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/xcpython.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/tracking.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/versions.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/SOURCES.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/dependency_links.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/entry_points.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/requires.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/top_level.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_build.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_cleanup.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_failed.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_invoker.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_list.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_prefix.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_recompress.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_report.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_setup.py +0 -0
|
@@ -567,11 +567,12 @@ class FullSoReport:
|
|
|
567
567
|
|
|
568
568
|
def get_problem(self, portable) -> str:
|
|
569
569
|
if portable:
|
|
570
|
-
|
|
571
|
-
if
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
570
|
+
allowed = PPG.config.get_value("allowed-system-libs")
|
|
571
|
+
if allowed:
|
|
572
|
+
# allowed-system-libs needs to be defined for the check to occur (opt-in)
|
|
573
|
+
allowed = re.compile(allowed)
|
|
574
|
+
uses_system = [x.relative_path for x in self.lib_tracker.category[LibType.system].items]
|
|
575
|
+
if uses_system:
|
|
575
576
|
uses_system = [x for x in uses_system if not allowed.match(x)]
|
|
576
577
|
|
|
577
578
|
if uses_system:
|
|
@@ -21,7 +21,7 @@ def test_find_libs(temp_folder):
|
|
|
21
21
|
assert x == ["lib-foo.a", "lp.dylib", "lp.so", "lp.so.1.0", "python3.9/config-3.9/libpython3.9.so"]
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
def test_inspect_python(temp_folder):
|
|
24
|
+
def test_inspect_python(temp_folder, monkeypatch):
|
|
25
25
|
PPG.grab_config("foo.yml")
|
|
26
26
|
inspector = PythonInspector("invoker")
|
|
27
27
|
assert str(inspector)
|
|
@@ -41,7 +41,9 @@ def test_inspect_python(temp_folder):
|
|
|
41
41
|
|
|
42
42
|
# Verify using system libs on linux is considered a fail
|
|
43
43
|
PPG.grab_config(target="linux-x86_64")
|
|
44
|
-
|
|
44
|
+
monkeypatch.setitem(PPG.config.default.data, "linux", {"allowed-system-libs": "/foo"})
|
|
45
|
+
problem = r.get_problem(True)
|
|
46
|
+
assert problem.startswith("Uses system libs:")
|
|
45
47
|
|
|
46
48
|
|
|
47
49
|
OTOOL_SAMPLE = """
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|