2
林..包在setup.py文件下面就Python包的教程,並試圖瞭解什麼是「包」線在這裏做
install_requires將安裝在列表中給出的所有軟件...所以,軟件包有什麼作用?
from distutils.core import setup
setup(
name='TowelStuff',
version='0.1.0',
author='J. Random Hacker',
author_email='[email protected]',
packages=['towelstuff', 'towelstuff.test'],
scripts=['bin/stowe-towels.py','bin/wash-towels.py'],
url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='Useful towel-related stuff.',
long_description=open('README.txt').read(),
install_requires=[
"Django >= 1.1.1",
"caldav == 0.1.4",
],
)
+1你的回答比我的更清楚。 (刪除我的)。 – mshildt