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 <>
## 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

## Context

I think the regression was introduced here:
Date User Action Args
2019-12-06 18:49:45Ryan Thorntonsetrecipients: + Ryan Thornton, eric.araujo, dstufft
2019-12-06 18:49:45Ryan Thorntonsetmessageid: <>
2019-12-06 18:49:45Ryan Thorntonlinkissue38989 messages
2019-12-06 18:49:45Ryan Thorntoncreate