Hi,
I need to add a python program (web updater+extras) with a window
application.
The same thing as the Online Lord of the Ring game lotrtcg.deciphe r.com.
When you install their application, it create a subdirectory with very few
python files*.dll,*.py d,*.pyc.:
_socket.pyd
_sre.pyd
_tkinter.pyd
(laucher.pyc)
(lotrotcglauche r.exe)
python22.dll
PyWinTypes22.dl l
tcl83.dll
tk83.dll
win32api.pyd
xlib.pyd
_MEI\...
Context: I want to add some python capabilities to my application, but not
force the user to install the full python distro.
Questions:
1- Are these files sufficient? (Too simple to be true!)
2- Is their some registry/path entries do perform to setup a minimal
python runtime?
Other ideas, examples of how to do it in a simple way?
Thanks
AL 2 2172
Hello AL, Context: I want to add some python capabilities to my application, but not force the user to install the full python distro. Questions: 1- Are these files sufficient? (Too simple to be true!)
That depends on the application and which modules it uses. All of the
installers (Installer, py2exe, cx_Freeze ...) will find all the modules
a given script needs. IIRC they all use of one distutils features.
2- Is their some registry/path entries do perform to setup a minimal python runtime?
Again, use one of the installers (py2exe seems to be popular). It will
create a small executable with all the needed modules.
HTH.
Miki
jeuxal_com wrote: Context: I want to add some python capabilities to my application, but not force the user to install the full python distro. Questions: 1- Are these files sufficient? (Too simple to be true!)
As python can now inport from .zip, you could add the python files as a
..zip:
- run compileall.py on <pythondir>/Lib to generate .pyc
- pack all the files into python23.zip
- if you install python23.zip into the same directory as the .exe, then I
think the file will already be added to sys.path
Hints:
- specify a nonsense directory to the -d option of compileall.py. Otherwise,
any backtraces will contain plausible filenames that do not exists on that
machine
- adding the .py files is optional
- python will not import .pyd from the .zip file
2- Is their some registry/path entries do perform to setup a minimal python runtime?
No, python will search for the files relative to the executable.
Daniel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jeuxal_com |
last post by:
Hi,
I need to add a python program (web updater+extras) with a window application.
The same thing as the Online Lord of the Ring game (http://lotrtcg.decipher.com/).
When you install their application, it create a subdirectory with very few python files*.dll,*.pyd,*.pyc.:
_socket.pyd
_sre.pyd
_tkinter.pyd
(laucher.pyc)
|
by: Marco Aschwanden |
last post by:
Hi
I would like to develop an app that is (more or less) database independet.
Python DB API helps when masking "parameters" of sql statements. The db
driver cares for the correct conversion of a date, text, etc. This already
is a big step into the right direction.
The next step would be to use the least common denominator of all sql
dialects and do without all the sql goodies that the dialects offer... and
for this part I am wondering...
|
by: Josh Close |
last post by:
I saw a question in a PHP list about the differences between php and
perl, and what the advantages between the two are, but I think I was
the only person that mentioned anything about python in the
discussion.
This makes me wonder what the python group things about these other languages.
Python vs. Perl. vs. PHP vs. C# (and other .NET languages) vs. Java
vs. C vs. C++ vs. whatever other language you can think of.
|
by: uri bushey |
last post by:
I have a Python program that is built on an infrastructure of quite a
few other programs, but I would like to create a standalone nonetheless.
It doesn't necesarily have to be its own executable, although this is
the most attractive option - it could just mean distributing the entire
python distribution with it in an installer or something.
However, here is what I have called in my python file:
Tkinter, and multiple Pmw widgets...
|
by: Thomas W |
last post by:
Will there be a WSGI-server like BaseHTTPServer etc in the standard
distro? I think that would increase the adoptation of the
WSGI-standard. A new web-framework for python pops up every other week
and more and more support WSGI. Why not focus on getting an optimized,
production-grade fully documented WSGI-server into the distro? Right
now the BaseHTTPServer seems to be usable for development and testing,
not production environment. Perhaps...
| |
by: James Stroud |
last post by:
Hello All,
I am trying to create a semi-standalone with the vendor python on OS X
10.4 (python 2.3.5). I tried to include some packages with both
--packages from the command and the 'packages' option in setup.py. While
the packages were nicely included in the application bundle in both
cases (at Contents/Resources/lib/python2.3/), they were not found by
python when the program was launched, giving the error:
"ImportError: No module...
|
by: azrael |
last post by:
Hy guys
last night i was lying in my bed and thinking about something. is
there any linux distro that is primary oriented to python. you know
what i mean. no need for php, java, or something like this. pure
python and containig all the funky modules like scipy, numpy,
boaconstructor (wx of course). something like the python enthought
edition, but all this on a distro included. maybe psql but persistant
predered, zope of course....
|
by: farksimmons |
last post by:
I am creating a distro of Python to be licensed as GPL.... am
wondering, what would anyone suggest as to 3rd party modules being put
into it (non-commercial of course!)? I know I'd put MySQLdb into it at
the very least. Any suggestions?
Thanks,
Fark Simmons
|
by: Eric_Dexter |
last post by:
I have found a couple of ways to include python in my pascal program
http://arctrix.com/nas/python/standalone.html
and an example I compiled from the embeded examples and I was wanting
to know if there are more examples or comiled versions I can execute
from my program... I am getting an error from the embeded and the
standalone would work better with command line support
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |