0
在Windows 7上,運行Python 2.7,python setup.py install
安裝python-money,但不安裝包含的money.django包。簡單setup.py看似破碎
可以找到setup.py文件here。以下列出一些它的方便:
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 = "[email protected]",
maintainer = "Ben Coughlan",
maintainer_email = "[email protected]",
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",
]
)