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.

Title: bdist_wininst builds wrongly for --plat-name=win-amd64
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.4, Python 3.5, Python 2.7
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: alexis, dstufft, eric.araujo, rgbecker, tarek, vstinner
Priority: normal Keywords:

Created on 2010-03-18 12:05 by rgbecker, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
patch.txt rgbecker, 2010-03-18 12:05 patch to make bdist_wininst force plat_name to bdist and build commands
Messages (4)
msg101260 - (view) Author: Robin Becker (rgbecker) Date: 2010-03-18 12:05
I notice this from win32 bdist_wininst --plat-name=win-amd64

> running bdist_wininst
> running build
> running build_py
> creating build
> creating build\lib.win32-2.6
> creating build\lib.win32-2.6\reportlab
> copying src\reportlab\ -> build\lib.win32-2.6\reportlab
> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nolog

followed by errors related to a missing library (the amd64 version won't work with a win32 build).

I do have the x86_amd64 stuff installed and after applying a patch to fix another small cross compile error I do see a proper build ie build --plat-name=win-amd64

and then use bdist_wininst --plat-name=win-amd64 --skip-build 

does work. I believe that bdist_wininst is wrongly relying on build to get the right plat_name, but that isn't happening.

The attached patch seems to make things work for me by forcing plat_name down from the top
msg113052 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-08-05 20:47
With development of disutils2, distutils issues are not getting much separate attention. This may or may not get folded in to disutils2.
msg154213 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-25 08:40
I’ll look into this when I get to set up a Windows VM and learn more about wininst.
msg384822 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-01-11 12:51
The distutils bdist_wininst command has been removed in Python 3.10: see bpo-42802.
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52418
2021-01-11 12:51:41vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg384822

resolution: wont fix
stage: test needed -> resolved
2014-07-29 20:31:29BreamoreBoysetnosy: + dstufft

components: - Windows, Distutils2
versions: + Python 3.4, Python 3.5, - 3rd party, Python 3.2, Python 3.3
2012-02-25 08:41:15eric.araujosetnosy: - terry.reedy
2012-02-25 08:40:21eric.araujosetassignee: tarek -> eric.araujo
components: + Distutils2
versions: + 3rd party, Python 3.3, - Python 3.1
nosy: + eric.araujo, alexis

messages: + msg154213
stage: patch review -> test needed
2010-08-10 11:36:23floxsetnosy: rgbecker, terry.reedy, tarek
components: + Windows
2010-08-05 20:47:59terry.reedysetnosy: + terry.reedy
messages: + msg113052
2010-08-05 03:46:34BreamoreBoysetstage: patch review
type: behavior
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
2010-03-18 12:05:10rgbeckercreate