<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>The hacking of sys.path required in option (1) suggested earlier is avoidable. I do not want my project to be setup-tools managed. Virtualenv + pip is hence the obvious choice.</div><div><br></div><div>Thanks,</div><div>Bharath</div><div><br><div>> From: pje@telecommunity.com<br>> Date: Fri, 30 Aug 2013 13:15:57 -0400<br>> Subject: Re: [Distutils] Distributable binary with dependencies<br>> To: reachbach@outlook.com<br>> CC: carl@oddbird.net; distutils-sig@python.org<br>> <br>> On Mon, Aug 26, 2013 at 2:25 PM, bharath ravi kumar<br>> <reachbach@outlook.com> wrote:<br>> > Carl, Eby,<br>> ><br>> > Thanks for taking time to suggest various alternatives. Considering that the<br>> > deployment hosts are identical in every as[ect, the approach of moving<br>> > virtualenv's with packages pip-installed at build time appears the simplest,<br>> > low-overhead  approach that can be implemented without hacking the<br>> > environment or resorting to custom scripts. I'll go ahead with that  option.<br>> <br>> What hacking the environment or custom scripts?<br>> <br>> I'm confused, because AFAIK there are actually more steps to<br>> pip-install a virtualenv and copy it to different machines, than there<br>> are involved in using easy_install to create a portable installation.<br>> In both cases, you end up with a directory to archive and copy, so the<br>> only difference is in the commands used to build that directory, and<br>> the layout of the directory afterwards.<br>> <br>> Perhaps you misunderstood my post as meaning that you had to run<br>> easy_install on the target system?<br>> <br>> (I don't have any particular stake in what you do for your own system,<br>> but I'm curious, both for the future reference of folks reading this<br>> thread by way of Googling this question, and in case there is<br>> something for me to learn or that I'm mistaken about, in relation<br>> either to pip/virtualenv or your use case.  And certainly if you are<br>> more familiar with pip+virtualenv, that would actually be sufficient<br>> reason in this case to use it.  But I'd prefer future readers of this<br>> thread not to be under an erroneous impression that easy_install<br>> involves more steps, scripts, or environment changes in order to<br>> implement this use case.  Thanks.)<br></div></div>                                       </div></body>
</html>