Skip to content

Conversation

rgommers
Copy link
Member

Reported in conda-forge/scipy-feedstock#264: linker args contained a \s on Windows as part of a path in a linker flag.

This is basically the same bug as gh-17936, it was fixed for paths in __config__.py but not for things like linker flags which usually don't contain a path but may do so.

Now turn everything except name/version/found/id, which really should not contain escapes, into raw strings.

Reported in conda-forge/scipy-feedstock#264:
linker args contained a `\s` on Windows as part of a path in a linker
flag.

This is basically the same bug as scipygh-17936, it was fixed for paths
in `__config__.py` but not for things like linker flags which usually
don't contain a path but may do so.

Now turn everything except name/version/found/id, which really should
not contain escapes, into raw strings.

[skip circle] [skip cirrus]
@rgommers rgommers added maintenance Items related to regular maintenance tasks backport-candidate This fix should be ported by a maintainer to previous SciPy versions. labels Jan 22, 2024
@github-actions github-actions bot added the Build issues Issues with building from source, including different choices of architecture, compilers and OS label Jan 22, 2024
@lucascolley lucascolley added this to the 1.12.1 milestone Jan 22, 2024
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

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

Thanks Ralf

@tylerjereddy tylerjereddy merged commit c242907 into scipy:main Jan 22, 2024
@rgommers rgommers deleted the fix-configpy-raw branch January 23, 2024 13:44
rgommers added a commit to rgommers/numpy that referenced this pull request Jan 23, 2024
The current code isn't robust to backslashes (from path segments on
Windows) in linker flags. No bug report for NumPy, but the same problem
did show up in SciPy already. Fix is the same as
scipy/scipy#19945

[skip cirrus] [skip circle]
charris added a commit to charris/numpy that referenced this pull request Jan 23, 2024
Backport of numpy#25669.

The current code isn't robust to backslashes (from path segments on
Windows) in linker flags. No bug report for NumPy, but the same problem
did show up in SciPy already. Fix is the same as scipy/scipy#19945.

This actually pulls in all of `__config__.py` from main because there
have been a number of other changes.

[skip cirrus] [skip circle]
charris added a commit to charris/numpy that referenced this pull request Jan 23, 2024
Backport of numpy#25669.

The current code isn't robust to backslashes (from path segments on
Windows) in linker flags. No bug report for NumPy, but the same problem
did show up in SciPy already. Fix is the same as scipy/scipy#19945.

This actually pulls in all of `__config__.py` from main because there
have been a number of other changes.

[skip cirrus] [skip circle]
@lucascolley lucascolley modified the milestones: 1.12.1, 1.13.0 Mar 12, 2024
@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build issues Issues with building from source, including different choices of architecture, compilers and OS maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants