Hi,
I'm building several conda packages and want to be able to check the channel to which the packages will be uploaded to see if the package already exists.
Right now I'm doing this with something like:
from binstar_client.scripts import cli
cli.main(args=['show','channel/package/version'])
and catching the NotFound error.
There seem to be a few problems with the approach, and I'm wondering if there is a better way.
The problems:
- I loop over the calls to `cli.main` and every iteration seems to increase the number of instances of `binstar show` that are running. So on the first iteration I get one check of the version, the second iteration (for the second package) I get the version report twice, for the third I get three, and so on.
- This doesn't allow one to check the platform without parsing the list of files returned by binstar show.
- This also doesn't allow one to check with version of numpy the package has been built against except by parsing the filenames.
Any suggestions appreciated!
Matt Craig