This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ryan Thornton
Recipients Ryan Thornton, dstufft, eric.araujo
Date 2019-12-06.18:49:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575658185.88.0.621824601443.issue38989@roundup.psfhosted.org>
In-reply-to
Content
## Expected Behavior

pip install should download dependencies matching the architecture of the python executable being used.

## Actual Behavior

When calling pip install from a Visual Studio command prompt configured to cross compile from x64 to x86, pip installs wheels matching the architecture of Visual Studio's cross compile target (i.e. `VSCMD_ARG_TGT_ARCH=x86`) and not the architecture of python itself (x64).

This results in a broken installation of core libraries.

## Steps to Reproduce

System Details:
Windows 10 x64
Python 3.8 x64
Visual Studio 2017 15.9.14

Environment Details:
vcvarsall.bat amd64_x86

1. "C:\Program Files\Python38\python.exe" -mvenv "test"
2. cd test\Scripts
3. pip install cffi==1.13.2

Results in the following:

> Collecting cffi
>  Using cached https://files.pythonhosted.org/packages/f8/26/5da5cafef77586e4f7a136b8a24bc81fd2cf1ecb71b6ec3998ffe78ea2cf/cffi-1.13.2-cp38-cp38-win32.whl

## Context

I think the regression was introduced here:
62dfd7d6fe11bfa0cd1d7376382c8e7b1275e38c

https://github.com/python/cpython/commit/62dfd7d6fe11bfa0cd1d7376382c8e7b1275e38c
History
Date User Action Args
2019-12-06 18:49:45Ryan Thorntonsetrecipients: + Ryan Thornton, eric.araujo, dstufft
2019-12-06 18:49:45Ryan Thorntonsetmessageid: <1575658185.88.0.621824601443.issue38989@roundup.psfhosted.org>
2019-12-06 18:49:45Ryan Thorntonlinkissue38989 messages
2019-12-06 18:49:45Ryan Thorntoncreate