[Python-bugs-list] [ python-Bugs-511055 ] bdist_wininst fails on StandaloneZODB

noreply@sourceforge.net noreply@sourceforge.net
Thu, 31 Jan 2002 01:32:27 -0800


Bugs item #511055, was opened at 2002-01-30 21:41
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=511055&group_id=5470

Category: Distutils
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Thomas Heller (theller)
Summary: bdist_wininst fails on StandaloneZODB

Initial Comment:
I don't know what I'm doing (never tried anything like 
this before), so scream if this is stupid.  From a 
vanilla CVS checkout of Zope Corp's StandaloneZODB, I 
tried (this is with Python 2.2 final):

\python22\python setup.py bdist_wininst

This was on Win98SE, with MSVC 6 installed.  It seemed 
to run fine for awhile, but eventually barfed.  Here's 
the tail end:

...
LIB\BTrees
copying build\lib.win32-2.2\BTrees\OIBTree.pyc -> 
build\bdist.win32\wininst\PLATLIB\BTrees
warning: install: modules installed 
to 'build\bdist.win32\wininst\PLATLIB\', which is not 
in Python's module search path (sys.path) -- you'll 
have to change the  search path yourself
changing into 'build\bdist.win32\wininst'
zip -rq c:\windows\TEMP\~-1370033-3.zip .
creating 'c:\windows\TEMP\~-1370033-3.zip' and 
adding '.' to it
changing back to 'C:\Code\StandaloneZODB'
creating dist\BTrees-?.win32-py2.2.exe
error: dist\BTrees-?.win32-py2.2.exe: No such file or 
directory

C:\Code\StandaloneZODB>

FYI, "setup.py install" and "setup.py build" work fine 
from this directory.

----------------------------------------------------------------------

>Comment By: M.-A. Lemburg (lemburg)
Date: 2002-01-31 01:32

Message:
Logged In: YES 
user_id=38388

This is a distutils sort of bug: if you don't specify a package 
version number, distutils uses '?' instead. Unfortunately,
some OSes don't handle '?' in filenames too well and this
is probably what you are seeing here.

The fix is simple: define a version number in setup.py.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=511055&group_id=5470