-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Compileall improvements #82293
Comments
Hello,
A PR should follow shortly. |
test_compileall failed on AMD64 Windows8.1 Non-Debug 3.x: Example: ERROR: test_compile_dir_pathlike (test.test_compileall.CompileallTestsWithSourceEpoch) Traceback (most recent call last):
File "D:\buildarea\3.x.ware-win81-release.nondebug\build\lib\test\test_compileall.py", line 48, in setUp
os.makedirs(self.long_path)
File "D:\buildarea\3.x.ware-win81-release.nondebug\build\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "D:\buildarea\3.x.ware-win81-release.nondebug\build\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "D:\buildarea\3.x.ware-win81-release.nondebug\build\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
[Previous line repeated 18 more times]
File "D:\buildarea\3.x.ware-win81-release.nondebug\build\lib\os.py", line 221, in makedirs
mkdir(name, mode)
FileNotFoundError: [WinError 206] The filename or extension is too long: 'D:\\temp\\tmpcgsk1z3q\\long\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\11\\12\\13\\14\\15\\16\\17\\18\\19\\20\\21\\22\\23\\24\\25\\26\\27\\28\\29\\30\\31\\32\\33\\34\\35\\36\\37\\38\\39\\40\\41\\42\\43\\44\\45\\46\\47\\48\\49\\50\\51\\52\\53\\54\\55\\56\\57\\58\\59\\60\\61\\62\\63\\64\\65\\66\\67\\68\\69\\70\\71\\72\\73\\74\\75\\76\\77\\78' Failures: ERROR: test_compile_dir_pathlike (test.test_compileall.CompileallTestsWithSourceEpoch) pythoninfo says: sys.windowsversion: sys.getwindowsversion(major=6, minor=3, build=9600, platform=2, service_pack='') |
Similar errors on AMD64 Windows10 3.x: pythoninfo: sys.windowsversion: sys.getwindowsversion(major=10, minor=0, build=17134, platform=2, service_pack='') -- And AMD64 Windows7 SP1 3.x: pythoninfo: sys.windowsversion: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') |
Thanks! I'd appreciate a review for the fix; I don't have a good way to test it other than offer it to the buildbots. |
FYI test_compileall.test_compile_dir_maxlevels() also fails on AMD64 FreeBSD CURRENT Shared 3.x: |
The AMD64 Windows7 SP1 3.x buildbot has been failing for a while since commit 4267c98, please take a look at https://bugs.python.org/issue38470. |
https://bugs.python.org/issue39769 may be of interest. compileall's ddir= does not behave properly in recursive subdirectories, it did the right thing in 2.7 which is similar to a combination of compile_dir(dir, prependdir=ddir, stripdir=dir) after this issue's feature. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: