◐ Shell
reader mode source ↗
Skip to content

bpo-40503: Add compile-time configuration to PEP 615#20034

Closed
pganssle wants to merge 28 commits into
python:masterfrom
pganssle:zoneinfo_compile_config
Closed

bpo-40503: Add compile-time configuration to PEP 615#20034
pganssle wants to merge 28 commits into
python:masterfrom
pganssle:zoneinfo_compile_config

Conversation

@pganssle

@pganssle pganssle commented May 11, 2020

Copy link
Copy Markdown
Member

This is the implementation for PEP 615's support for compile-time configuration of the time zone search path.

The main implementation is in #19909 — at the moment it's not merged so unfortunately the commits are also present in this PR until that one gets merged. I couldn't come up with a good way to both have a neat diff and run the CI, so I went with running the CI.

The relevant changes are the ones starting with the commit "Add --with-tzpath to autoconf"

https://bugs.python.org/issue40503

@pganssle pganssle force-pushed the zoneinfo_compile_config branch from 91cb1dd to e3a52c6 Compare May 12, 2020 13:46
pganssle added 3 commits May 12, 2020 10:09
The import machinery can be somewhat fragile, and the "seamlessly falls
back to pure Python" nature of this module makes it so that a problem
building the C extension or a failure to import the pure Python version
might easily go unnoticed.

This adds some "smoke tests" that rely on implementation details of each
module to ensure that we're building the ones we think we are.
This should improve support on Windows, including actually building the C
extension.

@Yhg1s Yhg1s left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LG for the configure changes (for UNIX; not sure if more should be done for Windows).

@pganssle pganssle force-pushed the zoneinfo_compile_config branch from e3a52c6 to cb54267 Compare May 12, 2020 16:52
@pganssle pganssle requested a review from a team as a code owner May 12, 2020 16:52

@zooba zooba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

Windows build changes look fine, thanks for getting the installer!

pganssle added 3 commits May 12, 2020 18:03
This is configurable only on POSIX systems at the moment and TZPATH is
initialized to an empty string on Windows.
@pganssle pganssle force-pushed the zoneinfo_compile_config branch from cb54267 to ddb8244 Compare May 12, 2020 22:08
@pganssle

Copy link
Copy Markdown
Member Author

OK, I expected this to take longer than it actually did, but it looks like this is resolved, so I've gone ahead and cherry-picked the commit back into #19909.

Thanks @zooba and @Yhg1s

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.

5 participants