[Distutils] package_data issue (chopping off characters)

Jeremy Sanders jeremy at jeremysanders.net
Thu Apr 14 11:58:49 CEST 2005

On Wed, 13 Apr 2005, Stefan Seefeld wrote:

> Coincidentally I have seen the same symptom last night, though the 
> context was different:
> The bdist_rpm command calls the 'install' commands (with all its 
> subcommands) to install everything under a predefined root directory. It 
> tells the 'install' command about that root path and the install command 
> modifies all its paths accordingly (search for 'change_root' in 
> distutils/commands/install.py).
> However, I made a small error in my 'install_clib' command's 
> 'get_outputs()' method in that it didn't consider the modified paths but 
> the original ones. bdist_rpm then cut off what it thought was the root 
> directory, but due to the error the resulting paths were incorrect (i.e. 
> appeared 'chopped off' as in your case).
> You didn't mention any custom commands, and so I'm not sure that's 
> really related to your error. It may give some hints, though, as to 
> where to look further.

No, I haven't used any custom commands. If anyone would like to look at 
the problem, download


unpack, cd to veusz, and run

python setup.py bdist

It then gives an error:

copying windows/consolewindow.py -> build/lib/veusz/windows
copying windows/__init__.py -> build/lib/veusz/windows
copying windows/mainwindow.py -> build/lib/veusz/windows
copying windows/treeeditwindow.py -> build/lib/veusz/windows
copying windows/simplewindow.py -> build/lib/veusz/windows
copying windows/action.py -> build/lib/veusz/windows
copying windows/plotwindow.py -> build/lib/veusz/windows
error: can't copy 'ERSION': doesn't exist or not a regular file

where the setup.py file refers to VERSION, not ERSION.



Jeremy Sanders <jeremy at jeremysanders.net>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

More information about the Distutils-SIG mailing list