setup.py包含它所在的同一目錄中的模塊,但省略了site.packages目錄中的模塊和我已添加到pythonpath的lib文件夾中的模塊。setup.py不包括模塊
不要告訴我,它不只是像Python解釋器一樣導入文件。它應該如果你給他們命名。
programdir-->
programdir-->
datadir
program.py
functions.py
setup.py
setup.py
from distutils.core import setup
setup(name = "program",
version = "1.0",
description = "a program",
author = "me",
author_email = "[email protected]",
url = "http://www.url.com",
py_modules = ["program", "functions", "tweepy", "anothermod", "webbrowser","" ],
data_files = [("data", ["data/intros.txt"])],
long_description = """
Descriptttttionnnn
"""
)
我在做什麼錯?
感謝您的回覆。 – Julius 2011-04-15 12:45:59