0

I would like to create an ant conditional target that checks if a django app is installed such as south. If It is installed, nothing to do but If not, run pip install south.

How could I do it using Ant?

dextervip
  • 4,999
  • 16
  • 65
  • 93

1 Answers1

1

Why not just have ant run pip with target version specified, i.e.

pip install south==0.7.4

If package already installed, pip will ignore it:

Requirement already satisfied (use --upgrade to upgrade): south==0.7.4 in ...

BluesRockAddict
  • 15,525
  • 3
  • 37
  • 35