[New-bugs-announce] [issue38957] Cannot compile with libffi from source on Windows
report at bugs.python.org
Mon Dec 2 18:38:33 EST 2019
New submission from Ashley Whetter <ashley at awhetter.co.uk>:
get_externals.bat downloads and extracts libffi to a versioned directory (much like the other external libraries). See https://github.com/python/cpython/blob/v3.8.0/PCbuild/get_externals.bat#L55
However the binary release is downloaded to an unversioned directory. See https://github.com/python/cpython/blob/v3.8.0/PCbuild/get_externals.bat#L79
The visual studio project looks for the unversioned directory (https://github.com/python/cpython/blob/v3.8.0/PCbuild/python.props#L62), and so the binaries are always used.
So it is possible to build from source, but you have to move libffi yourself after running `get_externals_bat --libffi-src`. I think the fix here is to make get_externals.bat and visual studio always use a versioned directory.
components: Build, Windows
nosy: AWhetter, paul.moore, steve.dower, tim.golden, zach.ware
title: Cannot compile with libffi from source on Windows
versions: Python 3.8, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce