<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=931010215-21062005><FONT face=Arial><FONT size=2>In the 
document "</FONT><FONT size=2>Distributing Python Modules" by </FONT><FONT 
size=2>Greg Ward, section "<A name=SECTION002600000000000000000>2.6 Installing 
Additional Files</A>" has the following example:</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>setup(...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
data_files=[('bitmaps', ['bm/b1.gif', 
'bm/b2.gif']),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
('config', 
['cfg/data.cfg']),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
('/etc/init.d', ['init-script'])]<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
)</FONT></DIV><FONT face=Arial size=2></FONT>
<DIV><BR><SPAN class=931010215-21062005><FONT face=Arial size=2>which I 
understand to be showing, in the last line, that a path proceeded by a "/" is an 
absolute destination path for the file names following it.&nbsp; When I try this 
in the following example:</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT size=2><FONT 
face="Courier New">setup(name="FOO",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
description="FOO - A Generic Package",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
version=__version__,<BR>&nbsp;&nbsp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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
)],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; author="C. Martin 
Taylor",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; author_email="</FONT><A 
href="mailto:cmtaylor@ti.com"><FONT 
face="Courier New">cmtaylor@ti.com</FONT></A><FONT 
face="Courier New">"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial size=2>and then build it 
with the command:</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT face="Courier New" 
size=2>&nbsp;&nbsp;&nbsp; python setup.py bdist 
--format=wininst</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial size=2>I get the following 
error messages:</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT face="Courier New" 
size=2>C:\FOO&gt;python setup.py bdist --format=wininst<BR>running 
bdist<BR>running bdist_wininst<BR>running build<BR>running 
build_py<BR>installing to build\bdist.win32\wininst<BR>running 
install_lib<BR>creating build\bdist.win32\wininst<BR>creating 
build\bdist.win32\wininst\PURELIB<BR>creating 
build\bdist.win32\wininst\PURELIB\FOO<BR>creating 
build\bdist.win32\wininst\PURELIB\FOO\EngA<BR>copying build\lib\FOO\EngA\EngA.py 
-&gt; build\bdist.win32\wininst\PURELIB\FOO\EngA</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face="Courier New" size=2>copying 
build\lib\FOO\EngA\__init__.py -&gt; 
build\bdist.win32\wininst\PURELIB\FOO\EngA<BR>creating 
build\bdist.win32\wininst\PURELIB\FOO\EngB<BR>copying build\lib\FOO\EngB\EngB.py 
-&gt; build\bdist.win32\wininst\PURELIB\FOO\EngB</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face="Courier New" size=2>copying 
build\lib\FOO\EngB\EngBConstants.py -&gt; 
build\bdist.win32\wininst\PURELIB\FOO\EngB<BR>copying 
build\lib\FOO\EngB\__init__.py -&gt; 
build\bdist.win32\wininst\PURELIB\FOO\EngB<BR>copying build\lib\FOO\FOO.py -&gt; 
build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\FOOLog.py -&gt; 
build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\FOO_CommonCode.py 
-&gt; build\bdist.win32\wininst\PURELIB\FOO</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT size=2><FONT 
face="Courier New">copying build\lib\FOO\FOO_UDF.py -&gt; 
build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\FOO_Version.py 
-&gt; build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\__init__.py 
-&gt; build\bdist.win32\wininst\PURELIB\FOO<BR>running install_data<BR>creating 
build\bdist.win32\wininst\DATA<BR>Traceback (most recent call last):<BR>&nbsp; 
File "setup.py", line 49, in ?<BR>&nbsp;&nbsp;&nbsp; author_email="</FONT><A 
href="mailto:cmtaylor@ti.com"><FONT 
face="Courier New">cmtaylor@ti.com</FONT></A><FONT 
face="Courier New">"<BR>&nbsp; File "C:\Python24\lib\distutils\core.py", line 
149, in setup<BR>&nbsp;&nbsp;&nbsp; dist.run_commands()<BR>&nbsp; File 
"C:\Python24\lib\distutils\dist.py", line 946, in 
run_commands<BR>&nbsp;&nbsp;&nbsp; self.run_command(cmd)<BR>&nbsp; File 
"C:\Python24\lib\distutils\dist.py", line 966, in 
run_command<BR>&nbsp;&nbsp;&nbsp; cmd_obj.run()<BR>&nbsp; File 
"C:\Python24\lib\distutils\command\bdist.py", line 146, in 
run<BR>&nbsp;&nbsp;&nbsp; self.run_command(cmd_name)<BR>&nbsp; File 
"C:\Python24\lib\distutils\cmd.py", line 333, in 
run_command<BR>&nbsp;&nbsp;&nbsp; 
self.distribution.run_command(command)<BR>&nbsp; File 
"C:\Python24\lib\distutils\dist.py", line 966, in 
run_command<BR>&nbsp;&nbsp;&nbsp; cmd_obj.run()<BR>&nbsp; File 
"C:\Python24\lib\distutils\command\bdist_wininst.py", line 152, in 
run<BR>&nbsp;&nbsp;&nbsp; install.run()<BR>&nbsp; File 
"C:\Python24\lib\distutils\command\install.py", line 505, in 
run<BR>&nbsp;&nbsp;&nbsp; self.run_command(cmd_name)<BR>&nbsp; File 
"C:\Python24\lib\distutils\cmd.py", line 333, in 
run_command<BR>&nbsp;&nbsp;&nbsp; 
self.distribution.run_command(command)<BR>&nbsp; File 
"C:\Python24\lib\distutils\dist.py", line 966, in 
run_command<BR>&nbsp;&nbsp;&nbsp; cmd_obj.run()<BR>&nbsp; File 
"C:\Python24\lib\distutils\command\install_data.py", line 62, in 
run<BR>&nbsp;&nbsp;&nbsp; dir = convert_path(f[0])<BR>&nbsp; File 
"C:\Python24\lib\distutils\util.py", line 89, in 
convert_path<BR>&nbsp;&nbsp;&nbsp; raise ValueError, "path '%s' cannot be 
absolute" % pathname<BR><STRONG><FONT color=#ff0000>ValueError: path 
'/FOO/FOO_BAR' cannot be absolute</FONT><BR></STRONG></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial size=2>Does anyone have an 
idea what is wrong here?&nbsp; Am I misinterpreting the document, or is there a 
bug in ActivePython 2.4?</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial size=2>Thank 
you,</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><SPAN lang=en-us><FONT face=Arial 
size=2></FONT></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN class=931010215-21062005><SPAN lang=en-us><FONT face=Arial size=2>C. 
Martin Taylor</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial size=2>Sr. 
Test Automation Specialist</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial 
size=2>Texas Instruments, Inc.</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial size=2>Educational and Productivity 
Solutions</FONT></SPAN></DIV></SPAN></BODY></HTML>