[Distutils] Absolute destination path in data_files

Phillip J. Eby pje at telecommunity.com
Tue Jun 21 20:10:33 CEST 2005

At 10:12 AM 6/21/2005 -0500, Taylor, Martin wrote:

>ValueError: path '/FOO/FOO_BAR' cannot be absolute
>Does anyone have an idea what is wrong here?  Am I misinterpreting the 
>document, or is there a bug in ActivePython 2.4?

I think the documentation is wrong, and that you can't use absolute paths.

If you want to install data with a package, the best way is to use the 
package_data argument instead of data_files.  This will install the data 
inside the package's own directory.  See the documentation for more details.

By the way, judging from your setup.py, are you sure you don't want those 
'UtilA' scripts to be installed as scripts instead?  (using scripts=[...])

More information about the Distutils-SIG mailing list