-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Is --no-cache-dir really needed? #9
Comments
I think this only applies to users who would be installing cypari from PyPI. There are two reasons for this:
That said, I guess if you've changed your pari installation (and assuming aspects of cypari's binaries depend on the pari version, which makes sense), there's no way for Python or pip to know that. So if you reinstall cypari using This only applies to users who would be installing from PyPI. In development it's irrelevant since you'd be running |
Thanks for the info. I guess there would also be problems if the user has two copies of PARI in some virtual environment (like Sage, conda, ...) and wants to |
Yes, that sounds right. Another possibility for the future, but unfortunately not available to us yet is a custom "platform tag"in the filename. This was originally specified here, though I'm releaizing PEP-425 is a bit out of date and should be updated here. The "platform tag" is not just limited to what's returned by I know there's been some talk about describing a protocol for custom platform tags (so in theory we could have platform tags that relate to different pari installations), but so far there's no consensus on that, and it's obviously tricky to get right. |
Do you happen to know whether there is an easy way for the package to prevent |
I don't think there is, no. Nor do I think it should by default. You've gotten me thinking though--it would be nice if packages could specify in their metadata some files that impact the build of binary modules. To an extent this could be generated automatically too--for example any libraries that extension modules are linked to could be automatically included in such a list. When pip builds a wheel that is saved in the wheel cache, it could also record the hashes of those dependent files on the user's system. Then force a rebuild upon |
I saw in the
README.md
that you need--no-cache-dir
in some cases. Is this really true? If true, that is quite annoying sincepip install
should "just work".The text was updated successfully, but these errors were encountered: