Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个 ant 条件目标来检查是否安装了 django 应用程序,例如南。如果已安装,则无需执行任何操作,但如果未安装,请运行 pip install south。
我怎么能用 Ant 做到这一点?
为什么不让 ant run pip 指定目标版本,即
pip install south==0.7.4
如果软件包已经安装,pip 将忽略它:
已满足要求(使用 --upgrade 升级): south==0.7.4 in ...