Skip to content

Conversation

@MudabbirulSaad
Copy link

Cross-platform dependency handling for Windows and Linux

Changes

  • Added platform-specific dependency logic to setup.py to conditionally include Linux-only packages
  • Created requirements-linux.txt for Linux users that includes Linux-specific dependencies
  • Removed direct dependencies on Linux-only packages from requirements.txt
  • Maintained backward compatibility for Linux installations

Problem solved

This PR fixes installation issues on Windows systems by removing Linux-specific dependencies (evdev and python-xlib) that were causing errors during installation. At the same time, it maintains Linux compatibility by conditionally including these dependencies only when installing on Linux systems.

How to install

  • Windows users: pip install -e . or pip install -r requirements.txt
  • Linux users: pip install -e . or pip install -r requirements-linux.txt

Testing

  • Verified installation works correctly on Windows
  • Keyboard automation functionality works properly using cross-platform pynput library

@KillerShoaib
Copy link
Owner

Thanks @MudabbirulSaad for solving the dependency conflict. I'll review it and merge it asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants