I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not
blow out to a folder full of files and can be called from scripts
using command line arguments?
2. If the above can be done, it is possible to hide parts of the
Python source code from users? These users are software developers,
but we don't want them to see how the code does what it does.
thanks, doug 9 2070
On 2006-11-03, Doug Stell <ce*******@mchsi.comwrote:
I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not
blow out to a folder full of files and can be called from scripts
using command line arguments?
The default operation of py2exe already meets requirement 1b:
an executable that can be called from scripts using command
line arguments.
--
Grant Edwards grante Yow! Now I'm concentrating
at on a specific tank battle
visi.com toward the end of World
War II!
Doug Stell wrote:
I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not
blow out to a folder full of files and can be called from scripts
using command line arguments?
2. If the above can be done, it is possible to hide parts of the
Python source code from users? These users are software developers,
but we don't want them to see how the code does what it does.
thanks, doug
py2exe reduce the number of files you need to distribute down to 4:
msvcr71.dll
w9xpopen.exe (Windows/98 support)
library.zip (all .pyo, .pyd, and .dll files)
applcation.exe
I does not however go to great lengths to "hide" the code from
someone with time/expertise that wants to get to your code
(but then just about anything can be disassembled). The compiled
..pyo files are just placed in library.zip. At least it doesn't
send your .py files along.
-Larry
Larry Bates schrieb:
Doug Stell wrote:
>I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not blow out to a folder full of files and can be called from scripts using command line arguments?
2. If the above can be done, it is possible to hide parts of the Python source code from users? These users are software developers, but we don't want them to see how the code does what it does.
thanks, doug
py2exe reduce the number of files you need to distribute down to 4:
msvcr71.dll
w9xpopen.exe (Windows/98 support)
library.zip (all .pyo, .pyd, and .dll files)
applcation.exe
It can easily be reduced to 2 files by 'embedding' the libray.zip
into the exe (use the zipfile=None option), and deleting the w9xpopen.exe
if you don't need win98 support.
I does not however go to great lengths to "hide" the code from
someone with time/expertise that wants to get to your code
(but then just about anything can be disassembled). The compiled
.pyo files are just placed in library.zip. At least it doesn't
send your .py files along.
Thomas
Thomas Heller wrote:
Larry Bates schrieb:
>Doug Stell wrote:
>>I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not blow out to a folder full of files and can be called from scripts using command line arguments?
2. If the above can be done, it is possible to hide parts of the Python source code from users? These users are software developers, but we don't want them to see how the code does what it does.
thanks, doug
py2exe reduce the number of files you need to distribute down to 4:
msvcr71.dll w9xpopen.exe (Windows/98 support) library.zip (all .pyo, .pyd, and .dll files) applcation.exe
It can easily be reduced to 2 files by 'embedding' the libray.zip
into the exe (use the zipfile=None option), and deleting the w9xpopen.exe
if you don't need win98 support.
and finally you can use Python2.3 to avoid msvcr71.dll
-robert
The McMillan (sp?) Python Installer has recently been resurrected as
well, though now, it is just called PyInstaller and can be found at http://pyinstaller.python-hosting.com/
It allows you to create a one file distributable without the need to go
back to Python2.3.
Despite what everyone is saying though, I believe that any and all
solutions will require that the byte-code be extracted to some
directory before being run. It's not as though you are REALLY
compiling the language to native code. It's just a bootstrap around
the Python interpreter and your code plus any modules that it needs to
run.
--
Jerry
Jerry wrote:
Despite what everyone is saying though, I believe that any and all
solutions will require that the byte-code be extracted to some
directory before being run.
the Python interpreter doesn't really care what you believe, though;
it's perfectly capable of executing byte code that's stored in memory
buffers.
</F>
In <11*********************@m7g2000cwm.googlegroups.c om>, Jerry wrote:
Despite what everyone is saying though, I believe that any and all
solutions will require that the byte-code be extracted to some
directory before being run.
It's not Python bytecode. The problem is native libraries which are hard
to run from memory without a real file backing it on some platforms. A
pure Python program/package should be possible without temporary files.
Ciao,
Marc 'BlackJack' Rintsch
Marc 'BlackJack' Rintsch schrieb:
In <11*********************@m7g2000cwm.googlegroups.c om>, Jerry wrote:
>Despite what everyone is saying though, I believe that any and all solutions will require that the byte-code be extracted to some directory before being run.
It's not Python bytecode. The problem is native libraries which are hard
to run from memory without a real file backing it on some platforms. A
pure Python program/package should be possible without temporary files.
py2exe even achives this on Windows. See http://www.py2exe.org/old/ ,
and look at the section named "The bundle option". py2exe is able to
load Python extensions (.pyd and .dll) from the zip-archive *without*
extracting them to the file system at all. It doesn't work for the C
runtime library msvcr71.dll though.
Thomas
Doug Stell wrote:
I have 2 questions about py2exe or any similar utility.
1. Is it possible to create a single Windows executable that does not
blow out to a folder full of files and can be called from scripts
using command line arguments?
py2exe can most certainly do this.
>
2. If the above can be done, it is possible to hide parts of the
Python source code from users? These users are software developers,
but we don't want them to see how the code does what it does.
thanks, doug
you can make a single exe in py2exe which would make it harder to
disassemble, but there's no such thing in the software world that makes
it impossible. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: RJS |
last post by:
Hi all,
I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32-
py2.2).
Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222.
In the sample below, commenting out...
|
by: Luc Saffre |
last post by:
Hello,
I had a strange problem when freezing (using either py2exe or McMillan
installer) a script that imports reportlab (which imports PIL (which
imports FixTk))).
- Python 2.3.3c (also with...
|
by: Will |
last post by:
Maybe there is another group for posting this... I am a total newbie to
Python... so please forgive me if I ask a bunch of inappropriate
questions... as I am a big question asker.
If I develope...
|
by: kdahlhaus |
last post by:
Is anyone aware of issues with Py2exe and extensions compiled with
cygwin/mingw for Python 2.3? I have an extension that wraps access to
some C DLLs. The generated executable always segfaults at...
|
by: iclinux |
last post by:
Using py2exe, I can convert a GUI Application with PythonCard to a
standalone windows program, and it works.
Then I try another GUI Toolkit named Wax, implement a GUI App, it
works. And I convert...
|
by: Durumdara |
last post by:
Hi !
I have an application that I compile to exe.
1.)
I want to compile main.ico into exe, or int zip. Can I do it ?
2.)
Can I compile the result to my specified directory, not into the...
|
by: Isaac Rodriguez |
last post by:
Hi,
I am looking for feedback from people that has used or still uses
Py2Exe. I love to program in python, and I would like to use it to
write support tools for our development team, but I...
|
by: Alexnb |
last post by:
Python.Arno wrote:
Okay, well thank you very much for your help you answered all my questions
:)
--
View this message in context:...
|
by: Alexnb |
last post by:
Hello
I am sure most of you are familiar with py2exe. I am having a bit of a
problem. See the program has a few pictures involved and the .ico it uses
for the windows. However, the pictures are...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |