portable-python 1.8.7__tar.gz → 1.9.1__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.1}/PKG-INFO +1 -1
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/config.py +0 -1
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/external/xcpython.py +1 -1
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/inspector.py +6 -5
- {portable-python-1.8.7 → portable-python-1.9.1/src/portable_python.egg-info}/PKG-INFO +1 -1
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_inspector.py +4 -2
- {portable-python-1.8.7 → portable-python-1.9.1}/DEVELOP.md +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/LICENSE +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/MANIFEST.in +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/README.rst +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/SECURITY.md +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/pyproject.toml +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/requirements.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/setup.cfg +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/setup.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/__init__.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/__main__.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/cli.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/cpython.py +6 -6
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/external/__init__.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/external/_inspect.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/external/tkinter.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/tracking.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python/versions.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python.egg-info/SOURCES.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python.egg-info/dependency_links.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python.egg-info/entry_points.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python.egg-info/requires.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/src/portable_python.egg-info/top_level.txt +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_build.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_cleanup.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_failed.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_invoker.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_list.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_prefix.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_recompress.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_report.py +0 -0
- {portable-python-1.8.7 → portable-python-1.9.1}/tests/test_setup.py +0 -0
|
@@ -316,7 +316,7 @@ class Xz(ModuleBuilder):
|
|
|
316
316
|
|
|
317
317
|
@property
|
|
318
318
|
def url(self):
|
|
319
|
-
return f"https://
|
|
319
|
+
return f"https://downloads.sourceforge.net/project/lzmautils/xz-{self.version}.tar.gz"
|
|
320
320
|
|
|
321
321
|
@property
|
|
322
322
|
def version(self):
|
|
@@ -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
|
|
@@ -211,12 +211,6 @@ class Cpython(PythonBuilder):
|
|
|
211
211
|
lib_auto_correct = LibAutoCorrect(self.c_configure_prefix, self.install_folder, ppp_marker=self.setup.folders.ppp_marker)
|
|
212
212
|
lib_auto_correct.run()
|
|
213
213
|
|
|
214
|
-
runez.abort_if(not runez.DRYRUN and not self.bin_python, f"Can't find bin/python in {self.bin_folder}")
|
|
215
|
-
PPG.config.ensure_main_file_symlinks(self)
|
|
216
|
-
if not self.setup.prefix:
|
|
217
|
-
self._relativize_sysconfig()
|
|
218
|
-
self._relativize_shebangs()
|
|
219
|
-
|
|
220
214
|
PPG.config.cleanup_configured_globs("Pass 1", self, "cpython-clean-1st-pass")
|
|
221
215
|
PPG.config.symlink_duplicates(self.install_folder)
|
|
222
216
|
validation_script = PPG.config.resolved_path("cpython-validate-script")
|
|
@@ -236,6 +230,12 @@ class Cpython(PythonBuilder):
|
|
|
236
230
|
|
|
237
231
|
self.run_python("-mpip", "install", *runez.flattened(additional))
|
|
238
232
|
|
|
233
|
+
runez.abort_if(not runez.DRYRUN and not self.bin_python, f"Can't find bin/python in {self.bin_folder}")
|
|
234
|
+
PPG.config.ensure_main_file_symlinks(self)
|
|
235
|
+
if not self.setup.prefix:
|
|
236
|
+
self._relativize_sysconfig()
|
|
237
|
+
self._relativize_shebangs()
|
|
238
|
+
|
|
239
239
|
self._validate_venv_module()
|
|
240
240
|
if PPG.config.get_value("cpython-compile-all"):
|
|
241
241
|
self.run_python("-mcompileall", "-q", self.install_folder / "lib")
|
|
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.1}/src/portable_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{portable-python-1.8.7 → portable-python-1.9.1}/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
|