Some minor stuff¶
The list
command¶
You can use this command to list all package’s avaiable versions:
$ pyg list pypol_
0.5 installed
0.4
0.3
0.2
$ pyg list itertools_recipes
0.1
If that package is installed, Pyg will add installed
after the current version.
Checking installed packages¶
If you want to check if a package is installed, you can use the check
command:
$ pyg check packname
Some examples:
$ pyg check pyg
True
$ pyg check pyg==42
False
$ pyg check pyg==0.1.2
True
$ pyg check pyg==0.1.3
False
Searching PyPI¶
Pyg can perform searches on PyPI with the search
command:
$ pyg search pypol_
pypol_ 0.5 - Python polynomial library
pypolkit 0.1 - Python bindings for polkit-grant
$ pyg search distribute
distribute 0.6.15 - Easily download, build, install, upgrade, and uninstall Python packages
virtualenv-distribute 1.3.4.4 - Virtual Python Environment builder
Linking directories¶
If you want to add a directory to PYTHONPATH
permanently the link
command is what you need:
$ pyg link dirname
When you link a directory Pyg add in a .pth
file the dir’s path.