22.0 does not install console script correctly into virtual environment on Windows Git Bash
See original GitHub issueDescription
Since the upgrade to v22, I cant run pytest from the command line anymore. I use git-bash and can see pytest installed in my path in my virtualenv. When running pytest nothing happens. I just get a blank response.
$ pytest
$
Running pytest using python works fine
$ python -m pytest
======================= test session starts =======================
platform win32 -- Python 3.8.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
.....
I created another virtualenv using v21.3.1 and there pytest works fine.
$ pytest
======================= test session starts =======================
platform win32 -- Python 3.8.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
.....
Expected behavior
After creating a new virtualenv and updating pip and installing wheel and installing my project in editable mode, I should be able to run pytest from the command line on windows and expect it to work and see my tests run.
pip version
22.0.2
Python version
3.8
OS
Windows 10
How to Reproduce
- Create new virtualenv.
- Update Pip and wheel
- pip install your package in editable mode hopefully one which has pytest
- Try running pytest
Output
You will get nothing
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:14 (13 by maintainers)
Top Results From Across the Web
'virtualenv' won't activate on Windows - Stack Overflow
Run this in your shell: Set-ExecutionPolicy Unrestricted -Force. Step 6. To activate virtualenv on Windows, activate script is in the Scripts folder:
Read more >How to active virtual environment in git bash terminal - YouTube
How to an active virtual environment in git bash in this video tutorial I'll teach you how can you active your python virtual...
Read more >Setting Up Conda in Git Bash - Codecademy Forums
In order to make the conda command available in Git Bash, you need to add conda's shell script to your .bashrc file. This...
Read more >Activating Virtualenv on Windows using Git Bash — Python 3.7.1
I don't like Powershell and I like to use Git Bash, so to activate virtualenv in Git Bash first navigate to your project...
Read more >Install Python, pip, and the EB CLI on Windows
To install the AWS CLI with pip (Windows). From the Start menu, open a Command Prompt window. Verify that Python and pip are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or it may be the sysconfig switch; MSYS2 has historically had bugs in their sysconfig patch.
No issues at all @uranusjr. The end goal is the same. I will just go follow the other issue. Thank you for your help!