qt5reactor icon indicating copy to clipboard operation
qt5reactor copied to clipboard

Dependency on pypiwin32?

Open altendky opened this issue 8 years ago • 5 comments

It might be worth making an explicit dependency on pypiwin32 in setup.py for Windows installs.

altendky avatar Nov 10 '16 18:11 altendky

I see that Twisted already depends on pypiwin32 for Windows installs. Are there any circumstances in which explicitly adding the dependency to qt5reactor proper would be necessary?

crwood avatar May 16 '17 14:05 crwood

Hmm, I honestly can't recall if there was a particular case where it was an issue for me. Clearly I should have commented such. That said, it is my opinion that direct dependencies should be directly required. I suppose that would suggest also including pyqt5 and zope.interface since they are directly imported as well.

altendky avatar May 16 '17 18:05 altendky

I think adding pyqt5 to install_requires could make things worse; it is not always possible to install pyqt5 using pip, and with pyqt5 in install_requires an innocent-looking pip install -U qt5reactor may unintentionally upgrade pyqt5 to a pip-installable version, e.g. without QtWebKit.

kmike avatar May 16 '17 19:05 kmike

I confirm that qt5reactor requires pypiwin32 on Windows. I had to install it separately.

aalex avatar Sep 11 '17 21:09 aalex

I wonder if the missing pypiwin32 is because we didn't know to install twisted[windows_platform]? I'm not sure why they don't just use the platform detection mechanisms.

altendky avatar Sep 12 '17 01:09 altendky