473,546 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Install libraries only without the program itself

Hi,

My application is a client/server in a LAN. I want to keep my programs
..py files on a central File Server serving all clients. The clients
should load those over the LAN every time they start the program since I
expect that they are rapidly changing and I dont want to update each
client seperatly.

On the clients there should only be python and the necessary libraries
and third party modules (sqlobject etc.) installed.

How do I make a setup script that only installs the necessary things,
without the program itself. Is there a tool for that?

--
Servus, Gregor
http://www.gregor-horvath.com
May 11 '06 #1
2 1362
Gregor Horvath wrote:
Hi,

My application is a client/server in a LAN. I want to keep my programs
.py files on a central File Server serving all clients. The clients
should load those over the LAN every time they start the program since I
expect that they are rapidly changing and I dont want to update each
client seperatly.
Don't forget you can screw up running clients if you override old
version with a new one.
On the clients there should only be python and the necessary libraries
and third party modules (sqlobject etc.) installed.


I believe it's better to keep *everything* on the file server. Suppose
your OS is windows and suppose you want to keep everything in s:/tools.
The actions are:
1. Copy python with all 3rd party modules from c:/python24 to
s:/tools/python24-win32
2. Grab exemaker from http://effbot.org/zone/exemaker.htm, copy
exemaker.exe to s:/tools/win32/client.exe
3. Create little dispatcher s:/tools/win32/client.py:
#!s:/tools/python24-win32/python.exe
import sys
sys.path[0] = "s:/tools/client-1.0.0"
import client
4. Create your first version of s:/tools/client-1.0.0/client.py:
print "I'm a client version 1.0.0"
-----------------------------
That's it. Now s:/tools/win32/client.exe is ready to go. I guess it's
obvious how to release version 1.0.1 If you need to support other
architectures or operating systems you just need to create tiny
dispatchers in directories s:/tools/linux, s:/tools/macosx ...

May 11 '06 #2
Serge Orlov schrieb:
I believe it's better to keep *everything* on the file server. Suppose
Certainly!
your OS is windows and suppose you want to keep everything in s:/tools.
The actions are:
3. Create little dispatcher s:/tools/win32/client.py:
#!s:/tools/python24-win32/python.exe
import sys
sys.path[0] = "s:/tools/client-1.0.0"
import client


I also had to set the paths for the imports and current directory
manually (why?). This worked for me:

#!y:/python24-win32/python24.dll
import sys
import os
sys.path =
["","y:\\","y:\\ python24-win32\\lib\\sit e-packages","y:\\ python24-win32\\DLLs","y :\\python24-win32\\lib","y: \\python24-win32\\lib\\pla t-win","y:\\pytho n24-win32\\lib\\lib-tk","y:\\python 24-win32",
"y:\\python 24-win32\\lib\\sit e-packages\\win32 ",
"y:\\python 24-win32\\lib\\sit e-packages\\win32 \\lib",
"y:\\python 24-win32\\lib\\sit e-packages\\Pytho nwin",
"Y:\\python 24-win32\\python24 .zip","y:\\pyth on24-win32"]
os.chdir("y:\\" )

import hobel300
5. I also had to copy all required dlls from the c:\winnt directory (for
example pywintypes24.dl l) into the current directory.

Thanks for this solution, works great, did not know that you can run
python programs even without a python installation on the local machine!
Nice!

--
Servus, Gregor
http://www.gregor-horvath.com
May 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2972
by: James Stroud | last post by:
Hello All, I will soon have an excuse to install a new operating system on my computer. I would like to know exactly what operating system I should have so that I can get wxPython going. wxPython is my only hold-out on my current system. wxPython seems to need gnome. So I have tried to build garnome and it didn't build all the way..and,...
2
7811
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but cpan>install DBD::mysql
4
2241
by: Matt Feinstein | last post by:
Hi all-- I'm planning to try to do a completely local install of matplotlib (in Fedora Core 1)-- the system administrator isn't going to stop me-- but he isn't going to cooperate either. I've got the tarballs for python, numeric, numarray, matplotlib, ipython, wxpython and freetype-- which I think covers the various pre-requisites and...
11
2170
by: Saurabh | last post by:
Hi all, I want to know why do we use libraries(static or shared). We can perform that work by including header files too.I also wish to know what exactly is linking and loading. i know these are pretty easy and basic questions. But plz help me considering the fact that i am a new developer in C++. Thanking you in advance.
6
2308
by: tekmicha | last post by:
Hallo, I am a newbie in C and I have a question regarding C libraries. I got an application in C and I am trying to add some new features on it for my work. The problem is this application requires the installation of an external Library A (not a C standard library). After some time I managed to install the external libraries using the...
9
9674
by: kotori | last post by:
Hi, i'm looking for a C++ compiler that I can run straight off of a USB Thumbdrive for compiling my applications on-the-go. I currently use both dev-cpp and MSVS8 at home, but I desperately need something I can run on the labs at school. The computers there are all running locked down accounts so its impossible to install anything beyond...
4
1705
by: Christopher Taylor | last post by:
Hello all, Being relatively new to linux I'm a little confused about what options I need to use to build python from source. Currently, I have python installed as part of the inital RHEL4 load located at /usr/bin/Python and /usr/bin/Python2.3 . Some of the files are located in /usr/lib64/Python2.3 and in /usr/lib/Python2.3 . Please let...
7
10476
by: buzzluck68 | last post by:
Hello, I have an in house application that we developed, but everyone who needs to use the program are not allowed to be local admins on their PCs. I was wondering if there was a way to code the application to not require admin rights (for modifying/creating excel and text files as well as modifying the registry)? And I was wondering if...
0
5022
by: kempshall | last post by:
Can somebody please tell me how to install the Tidy module for PHP 5 on a Mac? I tried what the php.net website said, which is running the command "pecl install tidy" but the installation failed somewhere in the make script. (It looks like PECL is trying to install Tidy version 1.2, even though the documentation says that's only for PHP4.) Any...
0
7504
marktang
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...
0
7947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
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...
0
6026
agi2029
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...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
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...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.