Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run python without python

0 views
Skip to first unread message

Spencer

unread,
Apr 1, 2010, 7:36:16 PM4/1/10
to pytho...@python.org
Is there a way to developing a script on linux and give it
to someone on microsoft, so that they could run it on microsoft
without installing python?

Wayne

Krister Svanlund

unread,
Apr 1, 2010, 7:46:39 PM4/1/10
to Spencer, pytho...@python.org

Chris Rebert

unread,
Apr 1, 2010, 7:54:06 PM4/1/10
to Krister Svanlund, Spencer, pytho...@python.org
On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund
<krister....@gmail.com> wrote:
> On Fri, Apr 2, 2010 at 1:36 AM, Spencer <Infot...@fairpoint.net> wrote:
>> Is there a way to developing a script on linux and give it
>> to someone on microsoft, so that they could run it on microsoft
>> without installing python?
>
> Short answer: No.

Long answer:
No indeed. But if he were to have a Windows computer, he could
generate a standalone executable from a Python program using one of
the following tools:
py2exe: http://www.py2exe.org/
PyInstaller: http://www.pyinstaller.org/

But one can't generate such a standalone executable for a different
operating system from that which one's computer runs.

Cheers,
Chris
--
http://blog.rebertia.com

danmc...@yahoo.com

unread,
Apr 2, 2010, 1:09:54 PM4/2/10
to
On Apr 1, 5:54 pm, Chris Rebert <c...@rebertia.com> wrote:
> On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund
>
> <krister.svanl...@gmail.com> wrote:

> > On Fri, Apr 2, 2010 at 1:36 AM, Spencer <Infotech...@fairpoint.net> wrote:
> >> Is there a way to developing a script on linux and give it
> >> to someone on microsoft, so that they could run it on microsoft
> >> without installing python?
>
> > Short answer: No.
>
> Long answer:
> No indeed. But if he were to have a Windows computer, he could
> generate a standalone executable from a Python program using one of
> the following tools:
> py2exe:http://www.py2exe.org/
> PyInstaller:http://www.pyinstaller.org/
>
> But one can't generate such a standalone executable for a different
> operating system from that which one's computer runs.
>
> Cheers,
> Chris
> --http://blog.rebertia.com

that's not entirely true. i just built a standalone exe for win 7 from
my win xp machine.

danmc...@yahoo.com

unread,
Apr 2, 2010, 1:10:23 PM4/2/10
to
On Apr 2, 11:09 am, "danmcle...@yahoo.com" <danmcle...@yahoo.com>
wrote:

using py2exe.

Chris Rebert

unread,
Apr 2, 2010, 1:23:08 PM4/2/10
to danmc...@yahoo.com, pytho...@python.org
On Fri, Apr 2, 2010 at 10:09 AM, danmc...@yahoo.com
<danmc...@yahoo.com> wrote:
> On Apr 1, 5:54 pm, Chris Rebert <c...@rebertia.com> wrote:
>> On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund
>> <krister.svanl...@gmail.com> wrote:
>> > On Fri, Apr 2, 2010 at 1:36 AM, Spencer <Infotech...@fairpoint.net> wrote:
>> >> Is there a way to developing a script on linux and give it
>> >> to someone on microsoft, so that they could run it on microsoft
>> >> without installing python?
<snip>

>> one can't generate such a standalone executable for a different
>> operating system from that which one's computer runs.
>
> that's not entirely true. i just built a standalone exe for win 7 from
> my win xp machine.

s/operating system/platform

Good luck getting PyInstaller to output for Windows when being run on
a *nix box.

danmc...@yahoo.com

unread,
Apr 2, 2010, 1:25:37 PM4/2/10
to
On Apr 2, 11:23 am, Chris Rebert <c...@rebertia.com> wrote:
> On Fri, Apr 2, 2010 at 10:09 AM, danmcle...@yahoo.com

you think virtualbox could help? i wonder if one could run linux/
py2exe virtually on a win machine and get it working.

John Bokma

unread,
Apr 2, 2010, 3:24:51 PM4/2/10
to
"danmc...@yahoo.com" <danmc...@yahoo.com> writes:

> On Apr 2, 11:23 am, Chris Rebert <c...@rebertia.com> wrote:
>> On Fri, Apr 2, 2010 at 10:09 AM, danmcle...@yahoo.com
>>
>> <danmcle...@yahoo.com> wrote:
>> > On Apr 1, 5:54 pm, Chris Rebert <c...@rebertia.com> wrote:
>> >> On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund
>> >> <krister.svanl...@gmail.com> wrote:
>> >> > On Fri, Apr 2, 2010 at 1:36 AM, Spencer <Infotech...@fairpoint.net> wrote:
>> >> >> Is there a way to developing a script on linux and give it
>> >> >> to someone on microsoft, so that they could run it on microsoft
>> >> >> without installing python?
>> <snip>
>> >> one can't generate such a standalone executable for a different
>> >> operating system from that which one's computer runs.
>>
>> > that's not entirely true. i just built a standalone exe for win 7 from
>> > my win xp machine.
>>
>> s/operating system/platform
>>
>> Good luck getting PyInstaller to output for Windows when being run on
>> a *nix box.
>

> you think virtualbox could help? i wonder if one could run linux/
> py2exe virtually on a win machine and get it working.

Of course that works, a virtual windows machine is just a windows
machine ;-).

Also that you can't do a "cross compilation" sounds to me more a
limitation of the tool than a true impossibility.

--
John Bokma j3b

Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development

Lie Ryan

unread,
Apr 3, 2010, 6:10:19 AM4/3/10
to
On 04/03/10 06:24, John Bokma wrote:
>>
>> you think virtualbox could help? i wonder if one could run linux/
>> py2exe virtually on a win machine and get it working.
>
> Of course that works, a virtual windows machine is just a windows
> machine ;-).
>
> Also that you can't do a "cross compilation" sounds to me more a
> limitation of the tool than a true impossibility.

Much like me writing French...

David Cournapeau

unread,
Apr 3, 2010, 8:57:34 AM4/3/10
to Chris Rebert, pytho...@python.org, danmc...@yahoo.com
On Sat, Apr 3, 2010 at 2:23 AM, Chris Rebert <cl...@rebertia.com> wrote:
> On Fri, Apr 2, 2010 at 10:09 AM, danmc...@yahoo.com
> <danmc...@yahoo.com> wrote:
>> On Apr 1, 5:54 pm, Chris Rebert <c...@rebertia.com> wrote:
>>> On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund
>>> <krister.svanl...@gmail.com> wrote:
>>> > On Fri, Apr 2, 2010 at 1:36 AM, Spencer <Infotech...@fairpoint.net> wrote:
>>> >> Is there a way to developing a script on linux and give it
>>> >> to someone on microsoft, so that they could run it on microsoft
>>> >> without installing python?
> <snip>

>>> one can't generate such a standalone executable for a different
>>> operating system from that which one's computer runs.
>>
>> that's not entirely true. i just built a standalone exe for win 7 from
>> my win xp machine.
>
> s/operating system/platform
>
> Good luck getting PyInstaller to output for Windows when being run on
> a *nix box.

Doesn't py2exe works under wine ? I have had great success building
windows installers on linux through wine (although not with py2exe),

cheers,

David

0 new messages