pystand 1.7__tar.gz → 1.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pystand
3
- Version: 1.7
3
+ Version: 1.8
4
4
  Summary: Install Python versions from python-build-standalone project
5
5
  Author-email: Mark Blakeney <mark.blakeney@bullet-systems.net>
6
6
  License: GPLv3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pystand
3
- Version: 1.7
3
+ Version: 1.8
4
4
  Summary: Install Python versions from python-build-standalone project
5
5
  Author-email: Mark Blakeney <mark.blakeney@bullet-systems.net>
6
6
  License: GPLv3
@@ -411,11 +411,14 @@ def install(args: Namespace, vdir: Path, release: str, distribution: str,
411
411
  return f'Arch "{distribution}" not found for release '\
412
412
  f'{release} version {version}.'
413
413
 
414
- if isinstance(fileurl, tuple):
415
- stripped = not args.no_strip
416
- fileurl = fileurl[stripped]
417
- else:
414
+ if isinstance(fileurl, str):
418
415
  stripped = False
416
+ else:
417
+ stripped = not args.no_strip
418
+ if not (fileurl := fileurl[stripped]):
419
+ desc = 'stripped' if stripped else 'unstripped'
420
+ return f'Arch {desc} "{distribution}" not found for release '\
421
+ f'{release} version {version}.'
419
422
 
420
423
  tmpdir = args._versions / f'.{version}-tmp'
421
424
  rm_path(tmpdir)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes