Files
quality_recticel/windows_print_service/PORTABLE_PYTHON_INSTRUCTIONS.txt
2025-09-25 22:26:32 +03:00

40 lines
1.4 KiB
Plaintext

# PORTABLE PYTHON PACKAGE INSTRUCTIONS
To create a complete self-contained package, you need to include a portable Python interpreter.
## Option 1: Download Embedded Python (Recommended)
1. Download Python 3.11 Embedded from: https://www.python.org/downloads/windows/
2. Choose "Windows embeddable package (64-bit)" or "(32-bit)"
3. Extract to a folder named 'python_portable'
4. The structure should be:
python_portable/
├── python.exe
├── python311.dll (or similar)
├── pythoncom311.dll
└── ... (other Python files)
## Option 2: Use PyInstaller (Alternative)
1. Install PyInstaller: pip install pyinstaller
2. Run: pyinstaller --onefile --noconsole print_service_complete.py
3. This creates a single .exe file with all dependencies
## Option 3: Manual Python Installation Check
The installer will check for system Python and use it if available.
## Current Package Structure
This package includes:
✓ Complete Python script with all dependencies
✓ Windows service installer
✓ Chrome extension
✓ Logging and error handling
✓ Multiple printing method fallbacks
✓ Automatic recovery options
## Dependencies Included in Python Script:
- All standard library modules (http.server, json, subprocess, etc.)
- No external dependencies required
- Pure Python implementation
The service will work with any Python 3.7+ installation.