mdcci 2.4__tar.gz → 2.4.2__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.4
2
2
  Name: mdcci
3
- Version: 2.4
3
+ Version: 2.4.2
4
4
  Summary: Extended LPro - MProcs simplified - A Life program by tderk, originally LPro.py and Destiny [2024]
5
5
  Author-email: tderk <usvu.tech@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mdcci"
7
- version = "2.4"
7
+ version = "2.4.2"
8
8
  description = "Extended LPro - MProcs simplified - A Life program by tderk, originally LPro.py and Destiny [2024]"
9
9
  requires-python = ">=3.8"
10
10
  readme = "README.md"
@@ -110,9 +110,15 @@ def jot_write(msg):
110
110
  jot_log.flush()
111
111
 
112
112
  print_orig = print
113
+
114
+ class SkipLog:
115
+ pass
116
+
117
+ skip_log = SkipLog()
118
+
113
119
  def jot_print(*args, **kwargs):
114
120
  global jot_log, jot_active
115
- if 'file' in kwargs and kwargs['file'] == z:
121
+ if 'file' in kwargs and isinstance(kwargs['file'], SkipLog):
116
122
  print_orig(*args, **kwargs)
117
123
  return
118
124
  text = " ".join(str(a) for a in args)
@@ -1729,17 +1729,23 @@ OTHER:
1729
1729
  """)
1730
1730
 
1731
1731
  def scmpy_main():
1732
- required_deps = ['requests', 'requests_oauthlib', 'beautifulsoup4', 'lxml', 'PIL']
1732
+ dep_imports = {
1733
+ 'requests': 'requests',
1734
+ 'requests-oauthlib': 'requests_oauthlib',
1735
+ 'beautifulsoup4': 'bs4',
1736
+ 'lxml': 'lxml',
1737
+ 'Pillow': 'PIL'
1738
+ }
1733
1739
  missing = []
1734
- for dep in required_deps:
1740
+ for pkg, imp in dep_imports.items():
1735
1741
  try:
1736
- __import__(dep)
1742
+ __import__(imp)
1737
1743
  except ImportError:
1738
- missing.append(dep)
1744
+ missing.append(pkg)
1739
1745
  if missing:
1740
1746
  print("\n=== Missing Dependencies ===")
1741
- for dep in missing:
1742
- print(f" - {dep}")
1747
+ for pkg in missing:
1748
+ print(f" - {pkg}")
1743
1749
  print("\nInstall now? [Y/n]: ", end='', flush=True)
1744
1750
  try:
1745
1751
  resp = input().strip().lower()
@@ -1747,9 +1753,9 @@ def scmpy_main():
1747
1753
  resp = 'y'
1748
1754
  if resp in ['', 'y', 'yes']:
1749
1755
  import subprocess
1750
- for dep in missing:
1751
- print(f"Installing {dep}...")
1752
- subprocess.run([sys.executable, '-m', 'pip', 'install', dep], capture_output=True)
1756
+ for pkg in missing:
1757
+ print(f"Installing {pkg}...")
1758
+ subprocess.run([sys.executable, '-m', 'pip', 'install', pkg], capture_output=True)
1753
1759
  else:
1754
1760
  print("Some features may not work.")
1755
1761
  load_history()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdcci
3
- Version: 2.4
3
+ Version: 2.4.2
4
4
  Summary: Extended LPro - MProcs simplified - A Life program by tderk, originally LPro.py and Destiny [2024]
5
5
  Author-email: tderk <usvu.tech@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes