pypa / pypa/setuptools

[BUG] bdist_wininst stub executables can't be found

Open
#3,284 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Needs Triage
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

setuptools version

62.1.0

Python version

all

OS

windows

Additional environment information

No response

Description

Trying to create a bdist_wininst installer fails with:

error: [Errno 2] No such file or directory: 'c:\src\python-3.9-amd64\lib\site-packages\setuptools\_distutils\command\wininst-9.0-amd64.exe'

This is because bdist_wininst.py looks for the stub .exe next to the source file - but it's not there as they are not distributed in the .whl (even though they are in the git tree!)

There is a good chance they exist under the original distutils directory though (they do for me) - or maybe they should just go in the wheel?

Expected behavior

see above

How to Reproduce

see above

Output

``

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in setuptools/_distutils/command/bdist_wininst.py at lines 359-373 and inspect how the wininst stub executable is located. Compare the files included in the wheel with the original distutils directory to determine the appropriate source. Done means bdist_wininst can find the required Windows stub executable when installed from a wheel.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.