Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10+ on Windows x86 architecture doesn't have the Scripts folder on path #1005

Open
2 of 5 tasks
Avasam opened this issue Jan 8, 2025 · 1 comment
Open
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@Avasam
Copy link

Avasam commented Jan 8, 2025

Description:
When pip installing a library that adds console scripts on Python 3.10+ on Windows x86, I get the following message:

WARNING: The scripts <> and <> are installed in 'C:\Users\runneradmin\AppData\Roaming\Python\Python3XX-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

See this action run at this specific line for example: https://github.com/mhammond/pywin32/actions/runs/12664473637/job/35292676675?pr=2408#step:5:3578

This doesn't see to affect x64 self-hosted runners or Python 3.9 and under.

I'm not 100% certain where the issue lies, but I'm assuming that this path not being added to PATH lies with setup-python
I couldn't find anything in Python 3.10's changelog indicating that this is an intended change within official Python installers themselves (no idea if this would happen with a local install)

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

3.10, x86
3.11, x86
3.12, x86
3.13, x86

Repro steps:
Run the actions of this commit (permalink): https://github.com/Avasam/pywin32/blob/61e4698/.github/workflows/main.yml

Expected behavior:
C:\Users\runneradmin\AppData\Roaming\Python\Python310-32\Scripts to be present on path, no warning and scripts are accessible

Actual behavior:

Installing collected packages: pywin32
  WARNING: The scripts pywin32_postinstall.exe and pywin32_testall.exe are installed in 'C:\Users\runneradmin\AppData\Roaming\Python\Python310-32\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
@aparnajyothi-y
Copy link
Contributor

Hello @Avasam, Thank you for creating this issue and we will look into it :)

@mahabaleshwars mahabaleshwars self-assigned this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants