Skip to content

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

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

Closed
wants to merge 2 commits into from

Conversation

nsiregar
Copy link
Contributor

@nsiregar nsiregar commented Jul 21, 2019

[3.10 prep] fix incorrect zip path

https://bugs.python.org/issue37616

Copy link
Contributor

@ZackerySpytz ZackerySpytz left a comment

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.

@@ -0,0 +1 @@
Update `getpath` detect zip path in :mod:`sys.path`
Copy link
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.

@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from b425a05 to 13bde0b Compare July 22, 2019 13:36
@nsiregar
Copy link
Contributor Author

nsiregar commented Jul 22, 2019

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

@csabella
Copy link
Contributor

csabella commented Feb 6, 2020

@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
Copy link
Contributor Author

nsiregar commented Feb 9, 2020

@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
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
Copy link
Member

brettcannon commented Mar 3, 2020

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
Copy link
Contributor Author

nsiregar commented Mar 4, 2020

working on it

@ambv
Copy link
Contributor

ambv commented May 19, 2020

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