Özellikle ne yapmaya çalışıyorsunuz? Eğer bazı garip şartları yoksa, senin setup.py dosyası bir bağımlılık olarak paket ilan öneriyoruz:
from setuptools import setup, find_packages
setup(
name = "HelloWorld",
version = "0.1",
packages = find_packages(),
scripts = ['say_hello.py'],
# Project uses reStructuredText, so ensure that the docutils get
# installed or upgraded on the target machine
install_requires = ['docutils>=0.3'],
package_data = {
# If any package contains *.txt or *.rst files, include them:
'': ['*.txt', '*.rst'],
# And include any *.msg files found in the 'hello' package, too:
'hello': ['*.msg'],
}
# metadata for upload to PyPI
author = "Me",
author_email = "[email protected]",
description = "This is an Example Package",
license = "PSF",
keywords = "hello world example examples",
url = "http://example.com/HelloWorld/", # project home page, if any
# could also include long_description, download_url, classifiers, etc.
)
Buradaki anahtar hat install_requires = ['docutils>=0.3']
olduğunu. Bu, kullanıcının aksini belirtmediği sürece, setup.py dosyasının bu bağımlılığı otomatik olarak yüklemesine neden olur. Bu here numaralı belgede daha fazla belge bulabilirsiniz (setuptools web sitesinin son derece yavaş olduğunu unutmayın!).
Bu şekilde tatmin edilebilecek bir gereksiniminiz varsa, muhtemelen S.Lott's answer'a bakmalısınız (yine de bunu kendim denemedim).
Google Arama'da Bulundu: easy_install.main ("-U py2app" .split()). Lütfen cevap metninizi değiştirin, böylece kabul edebilirim :) – grigoryvp
Bunun çalıştığını onaylayabilirim - python projem için özel yükleme komut dosyaları oluşturmak için her zaman yaparım. +1 –