summaryrefslogtreecommitdiffstats
path: root/Python/getcompiler.c
diff options
context:
space:
mode:
authorhetmankp <728670+hetmankp@users.noreply.github.com>2023-10-23 13:55:39 (GMT)
committerGitHub <noreply@github.com>2023-10-23 13:55:39 (GMT)
commit3726cb0f146cb229a5e9db8d41c713b023dcd474 (patch)
treefff1e2739ff14c0fa8c54c1e084c53079885ff58 /Python/getcompiler.c
parent52e902ccf0178d7a3f26de4bba7922b01c0d4d3c (diff)
downloadcpython-3726cb0f146cb229a5e9db8d41c713b023dcd474.zip
cpython-3726cb0f146cb229a5e9db8d41c713b023dcd474.tar.gz
cpython-3726cb0f146cb229a5e9db8d41c713b023dcd474.tar.bz2
gh-105931: Fix surprising compileall stripdir behaviour (GH-108671)
Before, the '-s STRIPDIR' option on compileall lead to some surprising results as it only strips away path components that match, but leaves alone the non-matching ones interspersed in between. For example, with: python -m compileall -s/path/to/another/src /path/to/build/src/file.py The resulting written path will be: build/file.py This fix only strips directories that are a fully matching prefix of the source path. If a stripdir is provided that is not a valid prefix, a warning will be displayed (which can be silenced with '-qq').
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions