我正在使用 setuptools 打包代码,以便可以使用
cd project_name && pip install .
Run Code Online (Sandbox Code Playgroud)
在安装过程中,我想警告用户有关预先存在的配置文件并在系统上打印一些安装后说明。例如
/etc/project_name/project.conf exists. Not copying default config file.
Run Code Online (Sandbox Code Playgroud)
我尝试使用print,logging.warning()但在使用 pip 安装时仍然没有出现警告。我有一种感觉,我错过了一些明显的东西。
我们正在尝试在 Redhat 系列上支持 3.0 > python >= 2.6 >= el6 和 Ubuntu >= 14.04LTS