<!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> </DIV>
<DIV><FONT face="Courier New" size=2>setup(...<BR>
data_files=[('bitmaps', ['bm/b1.gif',
'bm/b2.gif']),<BR>
('config',
['cfg/data.cfg']),<BR>
('/etc/init.d', ['init-script'])]<BR>
)</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. When I try this
in the following example:</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=931010215-21062005><FONT size=2><FONT
face="Courier New">setup(name="FOO",<BR>
description="FOO - A Generic Package",<BR>
version=__version__,<BR> package_dir = {"FOO" :
"Core",<BR>
"FOO.EngA" :
"EngA",<BR> "FOO.EngB"
: "EngB"},<BR> packages =
["FOO", "FOO.EngA", "FOO.EngB"],<BR>
data_files=[('/FOO/FOO_BAR',<BR>
["UtilA\CMDTestClient.py",<BR>
"UtilA\StopTestServer.py",<BR>
"UtilA\TestClient.py",<BR>
"UtilA\TestServer.py"]<BR>
)],<BR> author="C. Martin
Taylor",<BR> author_email="</FONT><A
href="mailto:cmtaylor@ti.com"><FONT
face="Courier New">cmtaylor@ti.com</FONT></A><FONT
face="Courier New">"<BR> )</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial
size=2></FONT></SPAN> </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> </DIV>
<DIV><SPAN class=931010215-21062005><FONT face="Courier New"
size=2> python setup.py bdist
--format=wininst</FONT></SPAN></DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial
size=2></FONT></SPAN> </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> </DIV>
<DIV><SPAN class=931010215-21062005><FONT face="Courier New"
size=2>C:\FOO>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
-> 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 ->
build\bdist.win32\wininst\PURELIB\FOO\EngA<BR>creating
build\bdist.win32\wininst\PURELIB\FOO\EngB<BR>copying build\lib\FOO\EngB\EngB.py
-> 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 ->
build\bdist.win32\wininst\PURELIB\FOO\EngB<BR>copying
build\lib\FOO\EngB\__init__.py ->
build\bdist.win32\wininst\PURELIB\FOO\EngB<BR>copying build\lib\FOO\FOO.py ->
build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\FOOLog.py ->
build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\FOO_CommonCode.py
-> 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 ->
build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\FOO_Version.py
-> build\bdist.win32\wininst\PURELIB\FOO<BR>copying build\lib\FOO\__init__.py
-> build\bdist.win32\wininst\PURELIB\FOO<BR>running install_data<BR>creating
build\bdist.win32\wininst\DATA<BR>Traceback (most recent call last):<BR>
File "setup.py", line 49, in ?<BR> author_email="</FONT><A
href="mailto:cmtaylor@ti.com"><FONT
face="Courier New">cmtaylor@ti.com</FONT></A><FONT
face="Courier New">"<BR> File "C:\Python24\lib\distutils\core.py", line
149, in setup<BR> dist.run_commands()<BR> File
"C:\Python24\lib\distutils\dist.py", line 946, in
run_commands<BR> self.run_command(cmd)<BR> File
"C:\Python24\lib\distutils\dist.py", line 966, in
run_command<BR> cmd_obj.run()<BR> File
"C:\Python24\lib\distutils\command\bdist.py", line 146, in
run<BR> self.run_command(cmd_name)<BR> File
"C:\Python24\lib\distutils\cmd.py", line 333, in
run_command<BR>
self.distribution.run_command(command)<BR> File
"C:\Python24\lib\distutils\dist.py", line 966, in
run_command<BR> cmd_obj.run()<BR> File
"C:\Python24\lib\distutils\command\bdist_wininst.py", line 152, in
run<BR> install.run()<BR> File
"C:\Python24\lib\distutils\command\install.py", line 505, in
run<BR> self.run_command(cmd_name)<BR> File
"C:\Python24\lib\distutils\cmd.py", line 333, in
run_command<BR>
self.distribution.run_command(command)<BR> File
"C:\Python24\lib\distutils\dist.py", line 966, in
run_command<BR> cmd_obj.run()<BR> File
"C:\Python24\lib\distutils\command\install_data.py", line 62, in
run<BR> dir = convert_path(f[0])<BR> File
"C:\Python24\lib\distutils\util.py", line 89, in
convert_path<BR> 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> </DIV>
<DIV><SPAN class=931010215-21062005><FONT face=Arial size=2>Does anyone have an
idea what is wrong here? 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> </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> </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>