question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

https://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:closed
  • Created 8 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stonebigcommented, May 31, 2018

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:

  • when updating pip, the updated pip is again in original way-of-python-life,
  • so this script updates pip and then re-apply the pip original WinPython patch on it: executable = (get_executable())

WinPython is basically a one-liner change, now.

0reactions
stonebigcommented, Sep 22, 2018

in this pip file: https://github.com/pypa/pip/blob/master/src/pip/_vendor/distlib/scripts.py#L176

the line

 executable = get_executable()

is replaced per

 executable = os.path.join(os.path.basename(get_executable()))

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found