小安装本地蟒蛇源包装
installdist的Python项目详细描述
关于
installdist
用于简化本地python包的安装。对于使用python包的开发人员来说,它可能是最有用的。使用一个命令,它将查找最近的^ {STR 1 } $DIST/<强>目录,识别具有最高版本(或最新时间戳)的包,卸载具有相同名称的任何预先存在的包,然后将包安装到本地安装。它不会做任何根本做不到的事情,它只是大大简化了工作流。
安装
pip3 install --user installdist
众所周知,installdist
包与python 3兼容。
用法
usage: installdist [OPTIONS] FILES/FOLDERS
Smartly install local Python source packages.
- optional arguments:
-2, --pip2 install package with pip2 -a, --auto skip prompts for user input -d, --dry-run indicate the commands to be run but do not execute them -n, --new install package possessing the most recent timestamp -p PACKAGE, --package PACKAGE install package by parent directory -q, --quiet suppress normal output (for use with –auto) -s, --system install to system directory -v, --verbose set logging level to verbose --version show program’s version number and exit -w, --wheel install wheel package NOTE: By default, installdist will uninstall any pre-existing installation before using
pip3 install --user
to install the highest version zip or tarball package available.
请注意,默认情况下,installdist
将使用pip3 install --user
安装可用的最高版本的zip或tarball包。如果要使用pip2
、wheel包、具有最新时间戳的包或安装到系统安装,请使用适当的标志。
installdist
在没有提示您确认的情况下不会进行更改,因此不要害怕出错。要测试命令,可以使用dry run标志(-d
或--dry-run
)。它将完全模拟命令,包括任何提示。
要从包的根目录安装python源包,installdist
将查找一个dist/目录(在当前目录和父目录中),并用最高版本号标识包。
installdist
要从包的根目录安装python源包,installdist
将查找dist/目录(在当前目录和父目录中),并标识具有最新时间戳的包。
installdist --new
安装python源程序包:
installdist package.tar.gz
通过指示包的父目录来安装python源包:
installdist -p ~/Development/project
如果您在virtualenv中工作或希望安装到根安装中,请记住使用--system
标志:
installdist -s