Khi tôi chạyTại sao "python setup.py sdist" tạo không mong muốn "PROJECT-egg.info" trong thư mục gốc của dự án?
python setup.py sdist
nó tạo ra một sdist trong thư mục ./dist tôi. Điều này bao gồm một tập tin "PROJECT-egg.info" trong zip bên trong thư mục "dist" của tôi, mà tôi không sử dụng, nhưng nó không làm tổn thương tôi, vì vậy tôi chỉ bỏ qua nó.
Câu hỏi của tôi là tại sao nó cũng tạo thư mục "PROJECT-egg.info" trong thư mục gốc của dự án của tôi? Tôi có thể làm cho nó ngừng tạo ra điều này? Nếu không, tôi có thể xóa nó ngay lập tức sau khi tạo sdist không?
Tôi đang sử dụng chức năng 'thiết lập' được nhập từ công cụ thiết lập. WindowsXP, Python2.7, Setuptools 0.6c11, Phân phối 0.6.14.
thiết lập cấu hình của tôi trông giống như:
{'author': 'Jonathan Hartley',
'author_email': '[email protected]',
'classifiers': ['Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 2.7'],
'console': [{'script': 'demo.py'}],
'data_files': [('Microsoft.VC90.CRT',
['..\\lib\\Microsoft.VC90.CRT\\Microsoft.VC90.CRT.manifest',
'..\\lib\\Microsoft.VC90.CRT\\msvcr90.dll'])],
'description': 'Utilities for games and OpenGL graphics, built around Pyglet.\n',
'keywords': '',
'license': 'BSD',
'long_description': "blah blah blah",
'name': 'pygpen',
'options': {'py2exe': {'ascii': True,
'bundle_files': 1,
'dist_dir': 'dist/pygpen-0.1-windows',
'dll_excludes': [],
'excludes': ['_imaging_gif',
'_scproxy',
'clr',
'dummy.Process',
'email',
'email.base64mime',
'email.utils',
'email.Utils',
'ICCProfile',
'Image',
'IronPythonConsole',
'modes.editingmodes',
'startup',
'System',
'System.Windows.Forms.Clipboard',
'_hashlib',
'_imaging',
'_multiprocessing',
'_ssl',
'_socket',
'bz2',
'pyexpat',
'pyreadline',
'select',
'win32api',
'win32pipe',
'calendar',
'cookielib',
'difflib',
'doctest',
'locale',
'optparse',
'pdb',
'pickle',
'pyglet.window.xlib',
'pyglet.window.carbon',
'pyglet.window.carbon.constants',
'pyglet.window.carbon.types',
'subprocess',
'tarfile',
'threading',
'unittest',
'urllib',
'urllib2',
'win32con',
'zipfile'],
'optimize': 2}},
'packages': ['pygpen'],
'scripts': ['demo.py'],
'url': 'http://code.google.com/p/edpath/',
'version': '0.1',
'zipfile': None}
FTR: Câu hỏi liên quan (nhưng không trùng lặp: câu hỏi này là về tệp thông tin trứng được tạo trong suốt sdist, thông tin khác về thông tin trứng được tạo trong khi cài đặt): http://stackoverflow.com/q/23460191/821378 –