From: Fernando P. <Fer...@co...> - 2006-01-26 17:59:11
|
Nadezhda Dencheva wrote: > What's wrong with Pete Shinners's smart_istall_data? > I am thinking of using it in all our packages, so > if someone knows of any drawbacks I'd like to hear > about this. > > I've spent hours trying to construct a distutils hack that > will force bdist_wininst to package data correctly and this > one just works, (that's why I'm so impressed). It seems you guys have found a solution already, but just in case it's of any use (now or later), you may want to glance at http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/setupext This little snippet of code was contributed to ipython long ago, to assist with data packaging (compatible with python 2.2, including bdist_rpm and bdist_wininst). Here's the setup.py that uses it: http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/setup.py all you do is pass to setup the line cmdclass = {'install_data': install_data_ext}, and the files listed as data_files get handled by it. If it's of any use, feel free to grab it. Cheers, f |