Merge pull request #23 from xonssh/0.2.11

xpip fixed
This commit is contained in:
anki-code 2020-02-22 10:42:51 +03:00 committed by GitHub
commit 61d8528464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -89,7 +89,12 @@ xxh arguments:
### Using pip and python
The xxh xonsh will use pip and python from `xonsh.AppImage` by default. You can install pip packages ordinally with `pip install`. They will appear in `$XXH_HOME/pip`.
The xxh xonsh will use pip and python from `xonsh.AppImage` by default. You can update pip and install packages ordinally:
```
$ python3 -m pip install --upgrade pip
$ python3 -m pip install --upgrade pandas
```
The packages will appear in `$XXH_HOME/pip` (`~/.xxh/pip` by default).
### How it works?

View file

@ -7,6 +7,7 @@ $PIP_TARGET = os.path.join($XXH_HOME, 'pip')
$PYTHONPATH = $PIP_TARGET
$PATH = [ os.path.join($PYTHONHOME, 'bin'), $XXH_HOME ] + $PATH
sys.path.append($PIP_TARGET)
aliases['xpip'] = ['python','-m','pip']
aliases['xxh'] = os.path.join($XXH_HOME, 'xonsh') + ' ' + os.path.join($XXH_HOME, 'xxh')
for plugin_path in sorted(glob.glob(os.path.join($XXH_HOME, 'plugins/**'))):