Skip to content

bpo-37616: Fix incorrect zip path for 3.10 prep#14874

Closed
nsiregar wants to merge 2 commits into
python:masterfrom
nsiregar:bpo-37616-zip-path-incorrect
Closed

bpo-37616: Fix incorrect zip path for 3.10 prep#14874
nsiregar wants to merge 2 commits into
python:masterfrom
nsiregar:bpo-37616-zip-path-incorrect

Conversation

@nsiregar

@nsiregar nsiregar commented Jul 21, 2019

Copy link
Copy Markdown
Contributor

[3.10 prep] fix incorrect zip path

https://bugs.python.org/issue37616

@ZackerySpytz ZackerySpytz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this fix is correct.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please use proper sentences in news entries.

I believe using single backquotes around "getpath" is incorrect (as per https://devguide.python.org/documenting). Also, I think the full file path should be used (instead of just "getpath").

sys.path is not a module.

Comment thread Modules/getpath.c Outdated
Comment thread Modules/getpath.c Outdated
Comment thread Modules/getpath.c Outdated
@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from b425a05 to 13bde0b Compare July 22, 2019 13:36
@nsiregar

nsiregar commented Jul 22, 2019

Copy link
Copy Markdown
Contributor Author

Should I change the algorithm to replace 00 in python00.zip with any concatenated version number?

@csabella

csabella commented Feb 6, 2020

Copy link
Copy Markdown
Contributor

@nsiregar, please resolve the merge conflict. Thank you!

@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from 13bde0b to 420335e Compare February 9, 2020 03:49
@nsiregar

nsiregar commented Feb 9, 2020

Copy link
Copy Markdown
Contributor Author

@csabella I've resolved the conflict

@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from 420335e to d644b66 Compare February 13, 2020 01:47
@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from d644b66 to 10d41ce Compare February 14, 2020 01:13
Comment on lines +1 to +2
Update ``Module/getpath.c`` read python zip path if python
version size more than 2 digit.

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.

Suggested change
Update ``Module/getpath.c`` read python zip path if python
version size more than 2 digit.
Update ``Module/getpath.c`` to read the stdlib from a zip file when the minor version is more than a single digit.

@brettcannon

brettcannon commented Mar 3, 2020

Copy link
Copy Markdown
Member

The memmove doesn't seem like the right solution here. Why not have two template file paths and then use the appropriate one based on the number of digits required?

@nsiregar

nsiregar commented Mar 4, 2020

Copy link
Copy Markdown
Contributor Author

working on it

@ambv

ambv commented May 19, 2020

Copy link
Copy Markdown
Contributor

Since this wasn't merged in time, we went with b4d4aef

@ambv ambv closed this May 19, 2020
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.

8 participants