I am building several Python packages and would like to upload them only if all the packages have been successfully built. I have a separate stage for each Python package, whose sdist is carried to the last stage where all collected sdists should be uploaded (if the build reaches the final stage, then all packages were built successfully).
Now, is there a way to execute python setup.py sdist, then python setup.py upload [path] in order to achieve what I need? Or is there a better way for this?
P.S.: I am using Bamboo, if it helps.