PyRun and PEX

Jürgen Hermann <jh-S0/[email protected]> Sat, 23 May 2015 11:57:37 +0200
Newsgroups gmane.comp.python.egenix.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============57093625084741983==
Content-Type: multipart/alternative;
	boundary="------------090703030005040008070304"

This is a multi-part message in MIME format.
--------------090703030005040008070304
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi, I tried (with success) to concatenate PyRun and a PEX to get a 
single distribution artifact for one-command projects (i.e. tools and 
services). The only wart is that one still needs to pass the "script 
name" to PyRun, else it starts the REPL.

What do you think about a startup check to see if the PyRun executable 
is also a ZIP file, and then behave as-if sys.argv[0] was also passed as 
the first parameter?

[PEX = https://github.com/pantsbuild/pex]


--------------090703030005040008070304
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi, I tried (with success) to concatenate PyRun and a PEX to get a
    single distribution artifact for one-command projects (i.e. tools
    and services). The only wart is that one still needs to pass the
    "script name" to PyRun, else it starts the REPL.<br>
    <div class="moz-forward-container"> <br>
      What do you think about a startup check to see if the PyRun
      executable is also a ZIP file, and then behave as-if sys.argv[0]
      was also passed as the first parameter?<br>
      <br>
      [PEX =
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://github.com/pantsbuild/pex">https://github.com/pantsbuild/pex</a>]
      <br>
    </div>
    <br>
  </body>
</html>

--------------090703030005040008070304--


--===============57093625084741983==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users

--===============57093625084741983==--