Skip to content

Conversation

@devnexen
Copy link
Contributor

@devnexen devnexen commented Sep 28, 2019

sqlite shared cached is disabled since the 10.7 release (2011).

https://bugs.python.org/issue38311

sqlite shared cached is disabled since the 10.7 release (2011).
@devnexen devnexen changed the title sqlite 3 macOS build fix bpo-38311: sqlite 3 macOS build fix Sep 28, 2019
@devnexen
Copy link
Contributor Author

no news

Copy link
Member

@ned-deily ned-deily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Unfortunately as noted, i'm not sure this is worth trying to fix. But if you want to take another stab at it, we can review it.

Checks if a string contains a complete SQL statement. Non-standard.");

#ifdef HAVE_SHARED_CACHE
#if defined(HAVE_SHARED_CACHE) && !defined(__APPLE__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is not sufficient because it will prevent _sqlite from being built with a local copy of SQLite rather than the Apple-supplied system version and that is something that many distributors of Python on macOS do, including the python.org macOS installers. So, to avoid the deprecation warning, you want to be able to know you are linking with the system version. That might be a little tricky to do reliably; it might have to be done in either configure.ac or setup.py and would need to take into account SDKs. And in most cases it is probably better to avoid using the macOS system SQLite anyway. So i'm not sure this is worth trying to fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be more precise, it would not prevent _sqlite from being built; it would disallow use of enable_shared_cache. Which, BTW, doesn't seem to be documented in the sqlite3 module doc page?

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@ned-deily ned-deily changed the title bpo-38311: sqlite 3 macOS build fix bpo-38311: Avoid sqlite3_enable_shared_cache deprecation warning when building with the macOS system SQLite3 Sep 29, 2019
@ned-deily
Copy link
Member

ned-deily commented Sep 29, 2019

Sorry, I just found an earlier open issue, bpo-24464, covering the same topic and with a similar proposed change. I've closed bpo-38311 as a duplicate of it; let's continue further discussion there.

@ned-deily ned-deily closed this Sep 29, 2019
@devnexen
Copy link
Contributor Author

No problems I understand your reasons, thanks.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants