[Python-bugs-list] [ python-Bugs-809846 ] distutils/bdistwin32
doesn't clean up RO files properly
SourceForge.net
noreply at sourceforge.net
Sat Sep 20 13:49:39 EDT 2003
Bugs item #809846, was opened at 2003-09-20 11:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=809846&group_id=5470
Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Coombs (jaraco)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils/bdistwin32 doesn't clean up RO files properly
Initial Comment:
Using Windows XP SP1, Python 2.3, Win32Extensions
build 159:
I recently added some data_files to my setup script as
so:
setup( ..., data_files = [ ( 'files', ['file.txt'] ) ] )
and when I ran my setup script with the build
option 'bdist_wininst', I get the following error at the
cleanup stage of the build:
removing 'build\bdist.win32\wininst' (and everything
under it)
error removing build\bdist.win32\wininst:
build\bdist.win32\wininst\DATA\file.txt: Permission denied
The error is followed by more errors attempting to
remove the parent directories because they're not
empty.
The reason permission is denied is because the file is
marked as read-only (via file attributes, not file
permissions). The source file is marked as read-only in
this case because it is being taken from a Visual
SourceSafe project which uses the RO attribute to
indicate check-out status. If I check out the file or
remove the RO flag, the script runs without errors.
Regardless of the reason for a file being marked RO, the
temporary files in wininst\DATA should not be copied
with their RO attribute or when cleaning up, the routine
should delete the files regardless of RO status.
I'm not sure what is the best way to approach this
problem, but I will be willing to provide input or even
code patches. I need input from the community,
however, on how to best fix this issue.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=809846&group_id=5470
More information about the Python-bugs-list
mailing list