473,573 Members | 2,902 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

distutils for non-python windows installers

Hi,

I can find a few questions regarding the use of distutils for making
non-python windows installers, but none of them really helps. Are
there any pointers on how to do this? Can it be done?

A little OT: What about making MSI installation files instead of .exe?
Is it a good idea to consider at all?
--
Brian (remove the sport for mail)
http://www.et.dtu.dk/staff/be
Jul 18 '05 #1
3 1811
Brian Elmegaard wrote:
I can find a few questions regarding the use of distutils for making
non-python windows installers, but none of them really helps. Are
there any pointers on how to do this? Can it be done?
To my knowledge, the answer is no. The resulting installer will look
for an existing Python installation on the target machine, and refuse
to operate if none can be found.

Of course, you have the complete source code of that installer
(including the code to the user interface), so you can adjust
it to your needs.
A little OT: What about making MSI installation files instead of .exe?
Is it a good idea to consider at all?


I would always recommend creating MSI files over some proprietary .exe
installers, as it allows for better customization, unattended
installation, and network installations.

If you want to do that using Python, please have a look at my Python
installer in the Tools/msi directory of Python 2.4b1.

Regards,
Martin
Jul 18 '05 #2
Martin v. Löwis wrote:
Brian Elmegaard wrote:
A little OT: What about making MSI installation files instead of .exe?
Is it a good idea to consider at all?

I would always recommend creating MSI files over some proprietary .exe
installers, as it allows for better customization, unattended
installation, and network installations.

If you want to do that using Python, please have a look at my Python
installer in the Tools/msi directory of Python 2.4b1.


I've meant to look into this but haven't had a chance
Is it possible to use this to create msi installers for python modules?
Is there a distutils plugin to do this?
If so, :-) :-) :-) !

David
Jul 18 '05 #3
David Fraser wrote:
I've meant to look into this but haven't had a chance
Is it possible to use this to create msi installers for python modules?
Certainly. The tricky part would be to find out where the Python
installation is, if this is going to be in the spirit of bdist_wininst.
This might require a custom action.
Is there a distutils plugin to do this?


Not yet, but I hope to write one some day.

Regards,
Martin
Jul 18 '05 #4

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

Similar topics

0
2249
by: PenguinOfDoom | last post by:
For whatever reason, distutils does not change file permissions of stuff in data_files in core.setup and neither does it allow specifying these permissions. The CVS repository I am using assigns permissions for files it downloads to 640. When distutils installs that, and I try to use the application, things obviously go boom. Right now, I'll...
1
1697
by: Dave Harrison | last post by:
afternoon pythonic gurus, quick question about distutils. Im compiling on solaris 9 and am having problems with the linking (I loathe solaris these days ;-), and if I call gcc by hand and remove the -shared flag and replace it with -G it works. But I just cant find where I need to change this in the distutils package for my install of...
2
1732
by: Skip Montanaro | last post by:
I would like to override the distutils install class. It doesn't look like it was designed for that. Do I have to import distutils.command and overwrite its install attribute? I didn't see anything about this sort of thing in the distutils docs. Thx, Skip
1
1457
by: Jens Thiede | last post by:
Pardon the silly question, but can one use distutils to install somewhere other than site-packages, or is distutils only ment for this kind of a job. I'd like to use it to make the distribution of my programs simpler :) Thanks for any good replies, Jens.
0
1124
by: Andrew Wilkinson | last post by:
Hi, I've have some example scripts that I'd like to install under /usr/share along with my documentation. Currently I'm doing this using... data_files= ....in my setup.py. This doesn't treat them as executable scripts however and as such doesn't modify the #! line nor does it mark them as executable. Is there anyway of getting distutils...
2
2314
by: Mike Meyer | last post by:
Ok, I give up. I searched the CVS code, and can't find the place that turns an include_dirs option in setup.cfg into a list of directories. The reason I was looking for it is that I can't figure out how to make include_dirs include multiple directories from setup.cfg. Everything I try winds up putting -I<contents_of_include_dirs>. I couldn't...
3
2106
by: Mike Meyer | last post by:
I've got a package that includes an extension that has a number of header files in the directory with the extension. They are specified as "depends = " in the Extension class. However, Distutils doesn't seem to do anything with them. If I do an sdist, the include files aren't added to the tarball. If I do a bdist_rpm, the source files get...
2
1817
by: Mardy | last post by:
Hi, the bdist_wininst command of distutils allows me to specify a script to be executed at the end of the installation. That's great, but how can I know the installation path from inside the script? I've already tried os.getcwd(), but it just return the directory where the setup was started. --
7
1530
by: Eric S. Johansson | last post by:
is there anyway I can, in a setup.py file, set and internal equivalent to the '--install-scripts' commandline option? script installation directory but I don't want on the command line where things can go horribly wrong if the user forgets. I would like to create a new default setting for this commandline option as well as a couple of...
7
4271
by: vedrandekovic | last post by:
Hello again, Is there any patch for python "distutils", for this ImportError: cannot import name log Regards, Vedran
0
7767
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
8006
Oralloy
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. ...
0
8196
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...
0
8058
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5579
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
5288
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
3729
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...
1
2191
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
0
1035
bsmnconsultancy
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...

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.