473,322 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

running distutils installer without admin on windows

Hello all.

We don't have admin privs on our Windows boxes, but I'd like to be able
to install a package built using distutils. I was able to install
Python without admin, but when I tried to run the installer for this
package I'm trying to install, I get a message saying that I need admin
privs.

Is there a way around this? Why can't it just put things in
C:\Python23\Lib\site-packages like a good little installer?

Do I need to put a service call in to our admins to do this?

Thanks.

Jul 19 '05 #1
4 1962


ti**************@nvl.army.mil wrote:
Hello all.

We don't have admin privs on our Windows boxes, but I'd like to be able
to install a package built using distutils. I was able to install
Python without admin, but when I tried to run the installer for this
package I'm trying to install, I get a message saying that I need admin
privs.

Is there a way around this? Why can't it just put things in
C:\Python23\Lib\site-packages like a good little installer?

Do I need to put a service call in to our admins to do this?

Thanks.


You can use the --home switch to specify a local directory to install
in, e.g.:

% python setup.py install --home=.

-Jesper

Jul 19 '05 #2
I didn't build the installer, someone else did. I did get the source
and installed cygwin to see if I could recreate it; at least build the
library, but when I tried to do a build_ext I got a message saying I
needed to have the .NET SDK installed.

Jul 19 '05 #3
"ti**************@nvl.army.mil" <ti**************@nvl.army.mil> writes:
I didn't build the installer, someone else did. I did get the source
and installed cygwin to see if I could recreate it; at least build the
library, but when I tried to do a build_ext I got a message saying I
needed to have the .NET SDK installed.


You could at least open the installer exe in winzip or a similar tool,
and unpack it manually to the site-packages directory.

Thomas

PS: I *think* that the distutils from newer Python versions (2.4.1 and
2.3.5) create installers that can also run without admin rights.
Jul 19 '05 #4
I found out how to build it with Cygwin

python setup.py build --compiler=mingw32 bdist

I can then unzip the zip file it creates and put it in site-packages.

It looks like I can install a bdist_wininst installer with Python 2.4,
but not 2.3.5
(without admin).

Jul 19 '05 #5

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

Similar topics

3
by: Brian Elmegaard | last post by:
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? ...
1
by: Bengt Richter | last post by:
I'd like to override the default d:\Python23\Lib\site-packages\ destination, at least as an option. I have used installshield in the past, which gives extensive control over just about...
1
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do...
5
by: Fuzzyman | last post by:
Python 2.4 is built with Microsoft Visiual C++ 7. This means that it uses msvcr7.dll, which *isn't* a standard part of the windows operating system. This means that if you build a windows installer...
1
by: George van den Driessche | last post by:
Hi folks, I'm looking at packaging a project I'm working on using distutils. The project is for Windows and contains a COM server which needs registration, so the installer needs to be a little...
1
by: timw.google | last post by:
Hi all. I have a package that uses other packages. I created a setup.py to use 'try:' and import to check if some required packages are installed. I have the tarballs and corresponding windows...
1
by: Alexandre Guimond | last post by:
Hi. I built a little installer on windows XP using distutils for my package. In there i add a few files to the python script directory. I would like one of these scripts to be the default...
0
by: billiejoex | last post by:
Hi there, I'm having problems with creating an installer for a module of mine by using distutils. I'll try to explain my problem as clear as I can (sorry but English is not my first language)....
6
by: Pep | last post by:
Firstly, I'm not sure if this is the right group for this query, so please forgive me if I am wrong. My problem is that most users I distribute my software to cannot install it on their systems...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.