distutils on windows ignoring package_data

Wilbert Berendsen wbsoft at xs4all.nl
Sat May 21 04:42:40 EDT 2011


Hi,

I have created a distutils setup.py script that installs a list of packages 
(all subpackages of one main package). Some packages have package_data files 
(icons, translations, etc).

Running setup.py install on my Linux system (python 2.6) perfectly installs 
all package data, but on Windows (tested with both 2.6 and 2.7) the 
package_data is not installed at all. Also not picked up in build, or 
bdist_wininst, etc. Only the Python files in the packages are installed.

The setup.py file can be seen at
https://github.com/wbsoft/frescobaldi/blob/master/setup.py

I later added the package_dir incantation, but it doesn't help on Windows and 
on Linux it worked perfectly without.

Does anybody have a clue why Python distutils on Windows ignore the 
package_data?

(Note: sdist perfectly works as the data files are also listed in MANIFEST.in)
tia,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/



More information about the Python-list mailing list