473,405 Members | 2,154 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,405 software developers and data experts.

problem with "setup.py bdist --formats=zip"

I would like to create a "binary" distribution for Windows, but in zip
format, since the installer requires root access. I don't want to use sdist
because that includes all the C source and the source for generating
documentation etc.

When I try bdist_dumb, or "bdist --formats=zip", the zip has the files with
*absolute* paths, as found on *my* system. This doesn't seem to make sense,
since anyone with Python not installed in the same place as mine won't be
able to unzip the distribution. Section 6.1 of python 2.3 docs has only one
line of text saying something about "absolute" vs "relative" and "not
implemented yet", somewhat surprising.

So how do people do this? I guess I could create a MANIFEST_bin.in where I
remove all the source stuff I don't want and replace sys.argv[1] with
"sdist" if I find "bdist" there, but that doesn't seem very robust. Plus I
then don't get the benefit of "bdist"-related stuff like putting "win32" in
the zip file name, etc. Surely I'm not the only one who needs this?

Thanks,
Oliver
Jul 18 '05 #1
4 1670
Humpdydum wrote:
I would like to create a "binary" distribution for Windows, but in zip
format, since the installer requires root access.


Not sure what you mean here. Windows doesn't have a "root" user,
though it has "Administrator". Is that what you meant? I believe
you'll find that the installer has an option to install for the
current user only, so that you don't have to be an Administrator
to do it.

-Peter
Jul 18 '05 #2
Peter Hansen wrote:
Humpdydum wrote:
I would like to create a "binary" distribution for Windows, but in zip
format, since the installer requires root access.

Not sure what you mean here. Windows doesn't have a "root" user,
though it has "Administrator". Is that what you meant?


Yes.
I believe
you'll find that the installer has an option to install for the
current user only, so that you don't have to be an Administrator
to do it.


Really? I've installed several (like Numeric etc) and looked but never
seen that option, I must be blind. Actually, I remember clearly that
they always say, after being started, something like "You don't have
sufficient priviledge, you must be administrator". I'll take another
look. Thanks,
Oliver
Jul 18 '05 #3
HumbdyDum wrote:
Peter Hansen wrote:
you'll find that the installer has an option to install for the
current user only, so that you don't have to be an Administrator
to do it.


Really? I've installed several (like Numeric etc) and looked but never
seen that option, I must be blind. Actually, I remember clearly that
they always say, after being started, something like "You don't have
sufficient priviledge, you must be administrator". I'll take another
look. Thanks,


I'm talking about the Python installer itself, not installers
for other things. Perhaps I misunderstood what you meant
when you said you wanted to create a binary distribution.
I assumed you meant "of Python".
Jul 18 '05 #4
Peter Hansen wrote:
HumbdyDum wrote:
Peter Hansen wrote:
you'll find that the installer has an option to install for the
current user only, so that you don't have to be an Administrator
to do it.

Really? I've installed several (like Numeric etc) and looked but never
seen that option, I must be blind. Actually, I remember clearly that
they always say, after being started, something like "You don't have
sufficient priviledge, you must be administrator". I'll take another
look. Thanks,


I'm talking about the Python installer itself, not installers
for other things. Perhaps I misunderstood what you meant
when you said you wanted to create a binary distribution.
I assumed you meant "of Python".


No I meant "of a Python package I want to distribute". I'd like to
create a zip file that contains the same stuff that the bdist_wininst
would contain. Is there a way to intercept the bdist_wininst to make it
create a zip instead of an exe installer?

Oliver
Jul 18 '05 #5

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
0
by: Jose Vicente Nunez Z | last post by:
Greetings, I wrote a couple of custom dummy extensions in Python (one a pure Python and the other a C) and i managed to compile and install them without a problem: $ make python2 setup.py...
0
by: Jeremy Sanders | last post by:
Hi - I'm trying to build a Psyco rpm on Fedora 1. I try the command xpc5:~/psyco-1.1.1> python setup.py bdist_rpm this fails with: .... copying dist/psyco-1.1.1.tar.gz ->...
6
by: Club-B42 | last post by:
i've compiled my programm using command "python setup.py py2exe >1" python script works fine, but .exe version fails with =====================================================================...
0
by: Manuzhai | last post by:
Hello there, I have this weird problem with a mod_python application. Recently I installed ElementTree and cElementTree through ez_setup.py, even though they were already installed normally...
3
by: Mike Orr | last post by:
I'm trying to install a program that uses Durus on a server. It appears that if a Python program uses eggs, it creates a ~/.python-eggs/ directory, so the home directory must be writeable. This...
1
by: erikcw | last post by:
Hi, I'm trying to insert some data from an XML file into MySQL. However, while importing one of the files, I got this error: Traceback (most recent call last): File "wa.py", line 304, in ?...
0
by: Robin Becker | last post by:
I'm getting this error whilst building simplejson-1.7.3 with "setup.py install" on a win32 platform. ........ creating build\bdist.win32\egg\EGG-INFO removing...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.