[Distutils] Bug in distutils?

Jens.Bloch.Helmers at dnv.com Jens.Bloch.Helmers at dnv.com
Tue Jul 1 09:52:56 EDT 2003


I have encoutered a strange problem with distutils on Win2k,WinXP using
python 2.2.2.

When I run 'python setup.py install' the file 'data.txt' is copied as
expected to:
C:\Python22\Lib\site-packages\PyTest\data.txt

When I run 'python setup.py bdist_wininst' and select default on all options
during
installation the file 'data.txt' is copied to:
C:\Python22\python22\Lib\site-packages\PyTest\data.txt
  ++++++++++++++++++

I guess this is a bug.

Best regards,
Jens B. Helmers


#Begin setup.py--------------------------------------------------  
import os
from distutils.core import setup
from distutils import sysconfig

package     = "PyTest"
files       = ['data.txt']
install_dir = os.path.join( sysconfig.get_python_lib(), package )

setup(name         = package,
      packages     = [ package ],
      data_files   = [ (install_dir, files) ]
     )
#End setup.py----------------------------------------------------  


**********************************************************************
Neither the confidentiality nor the integrity of this message 
can be guaranteed following transmission on the Internet. 
This message has been swept by MAILsweeper at DNV for 
the presence of computer viruses.
**********************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/distutils-sig/attachments/20030701/697774cf/attachment.htm


More information about the Distutils-SIG mailing list