Visitar URL original
bpo-37616: Fix incorrect zip path for 3.10 prep by nsiregar · Pull Request #14874 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223135801/https://github.com/python/cpython/pull/14874
Skip to content
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

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

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

I'm not sure if this fix is correct.

@@ -0,0 +1 @@
Update `getpath` detect zip path in :mod:`sys.path`
Copy link
Contributor

@ZackerySpytz ZackerySpytz Jul 22, 2019

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.

Modules/getpath.c Outdated Show resolved Hide resolved
Modules/getpath.c Outdated Show resolved Hide resolved
Modules/getpath.c Outdated Show resolved Hide resolved
@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from b425a05 to 13bde0b Compare Jul 22, 2019
@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 Feb 9, 2020
@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 Feb 13, 2020
@nsiregar nsiregar force-pushed the bpo-37616-zip-path-incorrect branch from d644b66 to 10d41ce Compare Feb 14, 2020
Update ``Module/getpath.c`` read python zip path if python
version size more than 2 digit.
Copy link
Member

@brettcannon brettcannon Mar 3, 2020

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.

None yet

8 participants