467,911 Members | 1,519 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,911 developers. It's quick & easy.

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
  • viewed: 1772
Share:
4 Replies


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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Brian Elmegaard | last post: by
1 post views Thread by Terry Hancock | last post: by
5 posts views Thread by Fuzzyman | last post: by
1 post views Thread by George van den Driessche | last post: by
1 post views Thread by Alexandre Guimond | last post: by
reply views Thread by billiejoex | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.