6 Aug
2019
6 Aug
'19
5:26 p.m.
On 06Aug2019 0959, Neil Schemenauer wrote:
Could PyPI and pip gain the ability to warn and even fix these issues? Having a warning from pip at install time could be better than a warning at import time. If linting was built into PyPI, we could even do a census to see how many packages would be affected by turning it into an error.
If the "generate .pyc" step is used, then it should trigger warnings at install time. Hopefully pip does not suppress these (nor treat them as fatal), though that would be one satisfactory way of hiding third-party warnings from end users. As Serhiy said, once the .pyc exists, you won't see this warning again. Cheers, Steve