make pip fly
See original GitHub issuehttps://github.com/pypa/pip/issues/2328#issuecomment-145976719
I agree there should be a make_pip_fly.bat script added to simplify things. something like:
@echo off
call %~dp0env.bat
echo patch pip
%WINPYDIR%\python.exe -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR%\Lib\site-packages\pip\_vendor\distlib\scripts.py', 'executable = get_executable()', 'executable = os.path.join(os.path.basename(get_executable()))' )"
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Flying PIP - Help Center
Flying PIP offers a way to make a moving picture-in-picture effect without resorting to keyframes to animate it. It also includes controls ...
Read more >Fly of the Month: Willy's Pip
It is simple to tie and you can create many variations. Willy's Pip is closely related to the Palomino Midge. I found this...
Read more >How to make Python package update within a code to take ...
I have the following line of codes: from pip import main as pipmain ...
Read more >Explanation of the Infield Fly Rule - Little League Baseball
The Infield Fly only calls the batter out. It does NOT create a dead-ball situation. Runners are allowed to advance at their own...
Read more >Flight Combat Pip Manipulation : r/starcitizen - Reddit
To top it off, the flight model has been programmed in such a way that allows for ridiculous manipulation of the pips in...
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 Free
Top 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
in a normal PYTHON installation each executable in python base directory contains the absolutes executable path to
python.exe
, via a single pip package instruction:executable = os.path.join(os.path.basename(get_executable())
winpython is build by replacing the pip instruction per
executable = (get_executable())
make_winpython_fix.bat
is removing this winpython twist by per the original way-of-python-life in all executable.executable = os.path.join(os.path.basename(get_executable())
make_winpython_movable.bat
is re-applying the Winpython build trick on pip package, and on already installed executable.Do I explain myself good enough ?
upgrade_pip.bat
is the last of the three trick:pip
, the updated pip is again in original way-of-python-life,executable = (get_executable())
WinPython is basically a one-liner change, now.
in this pip file: https://github.com/pypa/pip/blob/master/src/pip/_vendor/distlib/scripts.py#L176
the line
is replaced per
per the magic of https://github.com/winpython/winpython/blob/master/winpython/wppm.py#L474..L479
you can also open the pip file directly in your installation to get a proof