-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip does not skip platform-dependent ignores when installing from cache #7673
Comments
Happy to file this report downstream (i.e. with watchdog or pyobjc-framework) if this is not something pip should be handling. |
Would it be possible to obtain a copy of Edit: Also, is the output you posted for a successful or unsuccessful build? It does not use the cache or show the IOError, so I assume is the successful one? Does an unsuccessful build emit any logging like this? |
@uranusjr No problem, here is the wheel from the cache on the CI server (zipped as Github doesn't like .whl files). |
Thanks! Reading the wheel metadata, I know why the platform-dependent requirements are installed:
Those are not properly marked as platform-dependent. The problem then becomes why your wheel is built like that. Reading watchdog’s source, I see it is using proper markers, and so should produce a correct wheel. Maybe the problem is in the build chain? Maybe you could try removing the cached wheel, |
Thanks. We've got around the problem by changing our requirements to |
Yeah, I guess they might have some ideas about what happened in that particular version. |
It looks like there is nothing to do in pip wrt this issue, so I'll let the bot close this unless there is additional information coming up. |
This can be closed now, as the issue has been resolved by watchdog. Thanks for your help! |
Just to complete the information, we fixed watchdog by moving dependencies from Also I did not manage to reproduce the issue on my machine (GNU/Linux). So perhaps is this a specific issue on a specific machine. |
Doing some more debugging it seems the problem is with an old version of either setuptools or wheel. My builds are currently pegging |
Did you manage to know the exact setuptools version that fixed the issue? If so, I could add it as a minimum requirement when installing the module. |
Environment
Description
Platform dependencies are ignored when installing from cache.
This may not be a pip issue, if so, apologies. One of our dependencies (watchdog) has Mac-only dependencies. Our CI builds started to fail because pip was no longer ignoring them.
Log from a passing build:
Log from a failing build:
This build then failed while trying to install
pyobjc-framework-FSEvents
.Expected behavior
pip should continue to ignore Mac-only dependencies.
How to Reproduce
pip install watchdog
pip install watchdog
again.IOError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
The second attempt installs from cache and does not skip ignored packages.
Output
The text was updated successfully, but these errors were encountered: