Python distutils不在windows上安装软件包\u数据

Python distutils不在windows上安装软件包\u数据,python,windows,distutils,Python,Windows,Distutils,我的setup.py中有一行是我的一个项目(完整 问题底部的脚本): 这将mesh/binding/templates的内容安装到 Linux和OS X上的站点包/mesh/binding/templates目录,但是 无法在windows上成功如何在windows上使用此功能? 我是新来的distutils,所以如果我忘了一些重要的事情,请原谅我。 我正在使用setuptools0.6和python2.7 相关文件 setup.py: 清单。在中: 我发现最好的解决方案就是在我的构建中添加一个

我的
setup.py
中有一行是我的一个项目(完整 问题底部的脚本):

这将
mesh/binding/templates
的内容安装到
Linux和OS X上的站点包/mesh/binding/templates
目录,但是 无法在windows上成功如何在windows上使用此功能?

我是新来的
distutils
,所以如果我忘了一些重要的事情,请原谅我。 我正在使用
setuptools0.6
python2.7

相关文件
setup.py
清单。在
中:
我发现最好的解决方案就是在我的构建中添加一个额外的步骤。。。。这很糟糕,但我不知道还有别的办法

import os
from distutils.core import setup

# ...

setup(
    # ...
    package_data={
        'mesh.binding': ['templates/*'],
        'mesh.documentation': ['templates/*'],
    },
    # ...
)
import os
from distutils.core import setup

version = '1.0.0'
try:
    revision = os.environ['REVISION']
except Exception:
    pass
else:
    version = revision

packages = []
for root, dirs, files in os.walk('mesh'):
    if '__init__.py' in files:
        packages.append(root.replace('/', '.'))

setup(
    name='mesh',
    version=version,
    description='A declarative RESTful API framework.',
    author='Jordan McCoy',
    author_email='mccoy.jordan@gmail.com',
    license='BSD',
    url='http://github.com/siq/mesh',
    packages=packages,
    package_data={
        'mesh.binding': ['templates/*'],
        'mesh.documentation': ['templates/*'],
    },
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Code Generators',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ]
)
recursive-include mesh/binding/templates *.tmpl
recursive-include mesh/documentation/templates *.tmpl
include LICENSE
include requirements.txt
include *.rst
recursive-include tests *.py
recursive-include examples *.rst *.py
include docs/conf.py docs/Makefile
recursive-include docs *.rst
recursive-include docs/_static *.css
recursive-include docs/_templates *.html