def build_conda_packages(self):
<EOL>bldir = "<STR_LIT>"<EOL>if not os.path.exists(bldir):<EOL><INDENT>os.makedirs(bldir)<EOL><DEDENT>for pybuild in ["<STR_LIT>", "<STR_LIT:3>"]:<EOL><INDENT>build = api.build(<EOL>"<STR_LIT>".format(self.package),<EOL>python=pybuild)<EOL>if not self.deploy:<EOL><INDENT>cmd = ["<STR_LIT>", "<STR_LIT>", build[<NUM_LIT:0>], "<STR_LIT>", "<STR_LIT:test>", "<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>cmd = ["<STR_LIT>", "<STR_LIT>", build[<NUM_LIT:0>]]<EOL><DEDENT>err = subprocess.Popen(cmd).communicate()<EOL>api.convert(build[<NUM_LIT:0>], output_dir=bldir, platforms=["<STR_LIT>"])<EOL>osxdir = os.path.join(bldir, "<STR_LIT>", os.path.basename(build[<NUM_LIT:0>]))<EOL>if not self.deploy:<EOL><INDENT>cmd = ["<STR_LIT>", "<STR_LIT>", osxdir, "<STR_LIT>", "<STR_LIT:test>", "<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>cmd = ["<STR_LIT>", "<STR_LIT>", osxdir]<EOL><DEDENT>err = subprocess.Popen(cmd).communicate()<EOL><DEDENT>shutil.rmtree(bldir)<EOL>
Run the Linux build and use converter to build OSX