0

在 Windows 7 上,运行 Python 2.7python setup.py install会安装python-money,但不会安装包含的 money.django 包。

setup.py 文件可以在这里找到。为方便起见,我将其包括在下面:

import os
from setuptools import setup

def read(fname):
        return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
        name = "python-money",
        version = "0.6",
        author = "Jordan Dimov",
        author_email = "s3x3y1@gmail.com",
        maintainer = "Ben Coughlan",
        maintainer_email = "ben.coughlan@gmail.com",
        description = ("Data classes to represent Money and Currency types"),
        license = "BSD",
        keywords = "money currency",
        url = "http://code.google.com/p/python-money",
        packages = ['money', 'money.django'],
        long_description = read('README.txt'),
        classifiers = [
                "Development Status :: 4 - Beta",
                "Environment :: Plugins",
                "Environment :: Other Environment",
                "Framework :: Django",
                "Operating System :: OS Independent",
                "Intended Audience :: Developers",
                "Intended Audience :: Financial and Insurance Industry",
                "License :: OSI Approved :: BSD License",
                "Programming Language :: Python",
                "Topic :: Office/Business :: Financial",
        ]
)
4

1 回答 1

1

使用packages = find_packages(). 它应该会自动提取您的包裹。你甚至可以运行find_packages()并将它的输出复制粘贴到setup.py——这样你就会知道你做错了什么。

http://peak.telecommunity.com/DevCenter/setuptools#using-find-packages

于 2011-07-25T04:08:47.787 回答