【发布时间】:2015-12-09 14:35:28
【问题描述】:
我有以下项目结构设置
/docs
releaseNotes.rst
MANIFEST.in
/pySan
__init__.py
__init__.pyc
/torrent
__init__.py
components.py
utils.py
utils.pyc
setup.py
VERSION
但是当我在torrent 文件夹中安装__init__.py 时,没有被复制。
它安装在/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pySan 和setup.py 是:
from distutils.core import setup
from os import path
v = open(path.join(path.dirname(__file__), 'VERSION'))
VERSION = v.readline().strip()
v.close()
setup(
name='pySan',
version=VERSION,
author='Ciasto Piekarz',
author_email='Ciasto_piekarz@gmail.com',
packages=['pySan', 'pySan/torrent'],
data_files = ['VERSION'],
license='LICENSE',
description='Package is a collection of commonly used code for all my tools',
)
【问题讨论】:
标签: python installation setuptools distutils setup.py